pip install 安装指定版本的包和源


要用 pip 安装指定版本的 Python 包,只需通过 == 操作符 指定

pip install tensorflow==2.4.0

将安装tensorflow2.4.0版本。

要用 pip 安装指定源

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

 

豆瓣:https://pypi.douban.com/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云 https://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM