利用pip和清华源安装tensorflow的GPU版本和CPU版本(或其他模块)

安装tensorflow时,如果使用直接安装速度相对较慢,采取清华大学的镜像会提高速度。
GPU版本:
pip install tensorflow-gpu==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple

CPU版本:
pip install tensorflow==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple

其他模块(numpy\mxnet):
pip install XXXX -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install XXXX==1.2.3.4 -i https://pypi.tuna.tsinghua.edu.cn/simple

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章