pip is released together with the
Python. But I still cannot find it when our administrator installed the
latest python on my PC. How to install pip, then create virtualenv on Windows without the administrative permission?- Download
get-pip.py. - Run
python get-pip.py --user. It will installpiplocally. - Install
virtualenvby runningpython -m pip install --user virtualenv. This will install the package of virtualenv - Run
python -m virtualenv ENVto create a new virtual environment.ENVis a directory to place the new virtual environment. - Activate the script by running
ENV/Scripts/activate.bat.
You can then install python package by running
pip install ... as usual.
No comments:
Post a Comment