Tag Archives: returned nonzero exit status 1

[Solved] Python virtual environment install Error: returned non zero exit status 1

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