set proxy to download python package under company network

In command prompt, input below:

set http_proxy=http://account:Password@proxyServerIP:port
set https_proxy=http://account:Password@proxyServerIP:port

check the information you put:

set http

Then go to python interpreter folder, download package:

python -m pip install packageName --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org --target=c:/tibco/python/lib

留下评论

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