0
votes

Hi im having problem whenever i try to run pip list.

Traceback (most recent call last): File "C:\Users\Dell\AppData\Local\Programs\Python\Python39\Scripts\pip-script.py", line 33, in sys.exit(load_entry_point('pip==19.0.3', 'console_scripts', 'pip')()) File "C:\Users\Dell\AppData\Local\Programs\Python\Python39\Scripts\pip-script.py", line 25, in importlib_load_entry_point return next(matches).load() File "C:\Users\Dell\AppData\Local\Programs\Python\Python39\lib\importlib\metadata.py", line 77, in load module = import_module(match.group('module')) File "C:\Users\Dell\AppData\Local\Programs\Python\Python39\lib\importlib_init_.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in call_with_frames_removed File "C:\Users\Dell\AppData\Local\Programs\Python\Python39\lib\site-packages\pip_internal_init.py", line 3, in import pip._internal.utils.inject_securetransport # noqa ModuleNotFoundError: No module named 'pip._internal.utils'

1
could you also insert the code? - BigPy
Hi, I just ran "pip list" on my cmd and that shows up. Normally, it would show up a list of packages but in my case, only the above error showed up. - Sue
If you have the updated pip and it still shows the same error then I would suggest re-installing python, that should solve the problem. - BigPy
I have just found this command but it's for ModuleNotFoundError: No module named 'pip._internal'. idk is it work but I will try it first ! "curl bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py --force-reinstall " - Sue

1 Answers

0
votes
curl bootstrap.pypa.io/get-pip.py -o get-pip.py 
python3 get-pip.py --force-reinstall

I tried this and it solved so I will just leave this here for future references!