.一、網絡原因安裝失敗拋出錯誤timeouterror
使用鏡像網址更新pip:
python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
使用鏡像網址安裝擴展包:
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com numpy
或者
pip install -i https://pypi.doubanio.com/simple/ numpy
指定某個版本:
pip install pandas #不指定版本號,安裝可用的最新版本
pip install pandas==2.7 #指定版本號2.7
pip install "pandas>2.0,<3.0" #(2.0,3.0)之間的最新版本
如:
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com tensorflow==1.6
如有疑問可聯繫我微信: