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