在Windows上安装virtualenv时出错:
PS C:\Users\Jereh Lomak\Desktop\django tutorials> py -m venv myenv
Error: Command '['C:\\Users\\Jereh Lomak\\Desktop\\django tutorials\\myenv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
PS C:\Users\Jereh Lomak\Desktop\django tutorials>
答案 0 :(得分:0)
for pip install --> python -m pip install -U pip
for virtualenvwrapper-win install --> pip install virtualenvwrapper-win
create virtualEnvironment --> mkvirtualenv <VirtualEnvironmentName>
Activate virtualEnvironment --> workon <VirtualEnvironmentName>
deActivate virtualEnvironment --> deactivate