要用 pip
安裝指定版本的 Python 包,只需通過 ==
操作符 指定
pip install tensorflow==2.4.0
將安裝tensorflow
2.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/