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 installpip
locally. - Install
virtualenv
by runningpython -m pip install --user virtualenv
. This will install the package of virtualenv - Run
python -m virtualenv ENV
to create a new virtual environment.ENV
is 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