1. Error reporting when using PIP:
1 Traceback (most recent call last): 2 File "/usr/bin/pip3", line 9, in <module> 3 from pip import main 4 File "/usr/lib/python3/dist-packages/pip/__init__.py", line 14, in <module> 5 from pip.utils import get_installed_distributions, get_prog 6 File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 23, in <module> 7 from pip.locations import ( 8 File "/usr/lib/python3/dist-packages/pip/locations.py", line 9, in <module> 9 from distutils import sysconfig 10 ImportError: cannot import name 'sysconfig' from 'distutils‘
2. Solution:
2.1 installation pip
1 sudo apt-get install python3-pip
2.2 installing distutils
1 sudo apt-get install python3. 9-distutils
PS:Python3. For versions after 5, when installing distutils, you should install it with a specific version
sudo apt-get install python3.X-distutils
3. Installation succeeded
After all installations are successful, PIP – V can run normally and use pip.
Similar Posts:
- [Solved] ModuleNotFoundError: No module named’usysconfigdata u x86 64-u-gnu’
- [Solved] rosrun import rospy Error: ImportError: No module named yaml
- ImportError: No module named pytz
- Solution for oserror: [errno 1] operation not permitted encountered when installing tensorflow
- [Solved] PIP Error: “Cannot uninstall ‘six’. It is a distutils installed project…”
- [Solved] error: cannot uninstall ‘llvmlite’. It is a distutils installed project
- Mac OS uses pip to install pandas prompt cannot install ‘numpy’ solution
- Python error: Unable to find vcvarsall.bat [How to Solve]
- docker:ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
- [Solved] Python 3 installation pilot error: Building wheel for pillow (setup.py) … error