Various methods python installation of third-party libraries (the whole network the most complete and easiest to understand)

Mirroring:

pip install virtualenv -i https://pypi.douban.com/simple


Domestic Source:

    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple module_name

or

    pip install -i https://pypi.douban.com/simple module_name


The mirror source to accelerate domestic

pip install the package name -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com This is to obtain certification ssl certificates, or else will complain


Extension of time (to solve the problem of readout)

pip --default-timeout = 1000 install -U module name


Domestic sources plus extension of time (to avoid readout as well as foreign source net slow)

pip --default-timeout=1000 install -i https://pypi.tuna.tsinghua.edu.cn/simple module_name


To extend domestic source + time + network acceleration


pip --default-timeout=1000 install -i https://pypi.tuna.tsinghua.edu.cn/simple module_name --trusted-host pypi.douban.com

Published 49 original articles · won praise 11 · views 564

Guess you like

Origin blog.csdn.net/qq_45769063/article/details/105116870