利用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

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