I am trying to install pillow, however this is what happened:
> pip3 install pillow
Traceback (most recent call last):
File "C:UsersDELLAppDataLocalProgramsPythonPython39librunpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:UsersDELLAppDataLocalProgramsPythonPython39librunpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:UsersUSERProjectScriptspip3.exe__main__.py", line 7, in <module>
File "C:UsersUSERProjectlibsite-packagespip_internalclimain.py", line 78, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "C:UsersUSERProjectlibsite-packagespip_internalcommands__init__.py", line 114, in create_command
module = importlib.import_module(module_path)
File "C:UsersDELLAppDataLocalProgramsPythonPython39libimportlib__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:UsersUSERProjectlibsite-packagespip_internalcommandsinstall.py", line 16, in <module>
from pip._internal.cli.req_command import (
File "C:UsersUSERProjectlibsite-packagespip_internalclireq_command.py", line 19, in <module>
from pip._internal.index.package_finder import PackageFinder
File "C:UsersUSERProjectlibsite-packagespip_internalindexpackage_finder.py", line 31, in <module>
from pip._internal.req import InstallRequirement
File "C:UsersUSERProjectlibsite-packagespip_internalreq__init__.py", line 9, in <module>
from .req_install import InstallRequirement
File "C:UsersUSERProjectlibsite-packagespip_internalreqreq_install.py", line 40, in <module>
from pip._internal.operations.install.wheel import install_wheel
File "C:UsersUSERProjectlibsite-packagespip_internaloperationsinstallwheel.py", line 40, in <module>
from pip._vendor.distlib.scripts import ScriptMaker
File "C:UsersUSERProjectlibsite-packagespip_vendordistlibscripts.py", line 64, in <module>
WRAPPERS = {
File "C:UsersUSERProjectlibsite-packagespip_vendordistlibscripts.py", line 64, in <dictcomp>
WRAPPERS = {
File "C:UsersUSERProjectlibsite-packagespip_vendordistlibresources.py", line 196, in iterator
for name in resource.resources:
File "C:UsersUSERProjectlibsite-packagespip_vendordistlibutil.py", line 465, in __get__
value = self.func(obj)
File "C:UsersUSERProjectlibsite-packagespip_vendordistlibresources.py", line 115, in resources
return self.finder.get_resources(self)
File "C:UsersUSERProjectlibsite-packagespip_vendordistlibresources.py", line 180, in get_resources
return set([f for f in os.listdir(resource.src_path) if allowed(f)])
AttributeError: 'ResourceContainer' object has no attribute 'src_path'
All operations with pip
and pip3
, including upgrade pip, result in the exact error above.
I am working in a virtual env, the global pip
works just fine but the venv pip fails.
The last thing i did with pip
was installing customtkinter
More details:
> py -m pip list
Package Version
------------- ---------
customtkinter 5.2.2
darkdetect 0.8.0
easygui 0.98.3
mido 1.3.2
numpy 2.0.1
opencv-python 4.10.0.84
packaging 23.2
pip 24.2
setuptools 60.2.0
wheel 0.37.1
Python version:
> py --version
Python 3.9.6
Pip version:
py -m pip --version
pip 24.2 from D:UsersUSERProjectlibsite-packagespip (python 3.9)