临时:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U tensorflow
永久:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
本文介绍如何使用清华大学的镜像源来临时或永久地安装TensorFlow。临时安装通过添加特定的pip命令实现,而永久安装则需配置pip的index-url为清华源。此方法适用于网络环境不佳时加速Python包的下载。
临时:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U tensorflow
永久:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
392
268

被折叠的 条评论
为什么被折叠?