python version 2.7
Error
This error occurs when using pip
Traceback (most recent call last):
File “C:\Python27\Scripts\pip-script.py”, line 9, in
load_entry_point(‘pip==21.1.3’, ‘console_scripts’, ‘pip’)()
File “C:\Python27\lib\site-packages\pkg_resources_init_.py”, line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “C:\Python27\lib\site-packages\pkg_resources_init_.py”, line 2569, in load_entry_point
return ep.load()
File “C:\Python27\lib\site-packages\pkg_resources_init_.py”, line 2229, in load
return self.resolve()
File “C:\Python27\lib\site-packages\pkg_resources_init_.py”, line 2235, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “C:\Python27\lib\site-packages\pip_init_.py”, line 1, in
from typing import List, Optional
ImportError: No module named typing
The solution is to update python to 3, but I want to use 2.7, so this method does not work
Solution
I found that the version of pip is too high, and it is not compatible with python2, my version is pip21.1.3, so I need to set back the version of pip, the solution is as follows, just run it in order
curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
python -m pip install --upgrade "pip < 21.0"
Perfect solution, PIP version back, install again without error correction
Read More:
- Pointnet-pytorch Error: importError: No module named ‘pointnet‘
- Module notfounderror when installing suds: no module named ‘client’ solution
- bandersnatch Error: No module Named [How to Solve]
- Module not found error: no module named ‘filefolder’ appears when learning engineering knowledge
- ModuleNotFoundError: No module named ‘requests‘ [How to Solve]
- Django uses Mysql to report an error loading MySQL DB module: no module named ‘mysqldb’
- [Solved] ByteTrack Error: ModuleNotFoundError: No module named ‘yolox’
- [Solved] ModuleNotFoundError: No module named ‘_polyiou‘
- [Solved] ModuleNotFoundError: No module named ‘requests‘
- [Solved] Pytest Error: E ModuleNotFoundError: No module named ‘common
- No module named ‘google.rpc‘ [How to Solve]
- ModuleNotFoundError: no module named ‘pip‘ [How to Solve]
- [Solved] ModuleNotFoundError: No module named ‘pip‘
- [Solved] Pytorch-geometric Error: No module named torch_sparse
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- ModuleNotFoundError: No module named ‘tensorflow.python’ And the pits encountered after installation
- [Solved] modulenotfounderror: no module named ‘torchtext.legacy.data.datasets_ utils‘
- Python Pandas Error: No module named ‘openpyxl‘
- [Solved] ModuleNotFoundError: No module named ‘xxx’; ‘xxx’ is not a package
- [Solved] Pychar error: modulenotfounderror: no module named ‘requests_ HTML ‘solution