offline install python packages

paste the whl files folder named python to the path C:\temp(in req.txt named the main modules you want to install), and go to the python.exe directory which you want to install on:

python -m pip install -r "C:\temp\python\req.txt" --no-index --find-links file://"C:\temp\python"

or to the path and:

for %x in (*.whl) do python -m pip install %x

by the way, using proxy(2 dashes before proxy):

pip install modulename --proxy http://user:password@proxyserver:port

留下评论

通过 WordPress.com 设计一个这样的站点
从这里开始