The reason is unknown, so the installed PIP version is a little messy
My actions:
-Install virtual environment: Python 3 – M venv — without PIP env
-Switch to virtual environment: source env/bin/activate
-Get PIP installation file: WGet https://bootstrap.pypa.io/get-pip.py
-Install PIP: Python get pip py
-Exit virtual environment: deactivate
-Re enter the virtual environment: source env/bin/activate
-Confirm Python: which Python
-Confirm PIP: which PIP
Similar Posts:
- AttributeError: ‘module’ object has no attribute ‘main’
- Python Via get-pip.py Install pip Error: zipimport.ZipImportError: can‘t decompress data; zlib not availabl
- Anaconda conda activate Envirnment: Your shell has not been properly configured to use ‘conda activate’.
- [PIP command error] after upgrading the PIP in Ubuntu 16.04, execute the PIP command to report an error sys.stderr.write (F “error: {exc}”)
- [Solved] pip and setuptools upgrade Error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-fH0Feg/pip/
- Solution to error reporting of CONDA virtual environment due to system environment variables
- ImportError No module named setuptools [How to Solve]
- [Solved] python Install pip Error: zipimport.ZipImportError: can’t decompress data; zlib not available
- How to install PIP in no module named setuptools
- Easzlab/kubeasz ansible installation error [How to Solve]