Python安裝模組常用映象源
阿新 • • 發佈:2020-08-28
阿里雲
https://mirrors.aliyun.com/pypi/simple/
豆瓣(douban)
https://pypi.douban.com/simple/
清華大學
https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學技術大學
https://pypi.mirrors.ustc.edu.cn/simple/
#Win python -m pip install xxx -i https://pypi.douban.com/simple python -m pip install SomePackage==1.0.4 # specific version python -m pip install "SomePackage>=1.0.4" # minimum version #使用並行安裝的多個 Python 版本 #win py -2 -m pip install SomePackage # default Python 2 py -2.7 -m pip install SomePackage # specifically Python 2.7 py -3 -m pip install SomePackage # default Python 3 py -3.4 -m pip install SomePackage # specifically Python 3.4#在 Linux, Mac OS X 以及其他 POSIX 系統中 python2 -m pip install SomePackage # default Python 2 python2.7 -m pip install SomePackage # specifically Python 2.7 python3 -m pip install SomePackage # default Python 3 python3.4 -m pip install SomePackage # specifically Python 3.4 #將 --user 選項傳入 python -m pip install 將只為當前使用者而非為系統中的所有使用者安裝軟體包