1. 程式人生 > >在伺服器上通過建立虛擬環境安裝python2.7的tensorflow

在伺服器上通過建立虛擬環境安裝python2.7的tensorflow

首先建立虛擬環境。(建立一個基於py2.7的環境)

(這裡有各個版本的tensorflow)https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ \https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/gpu/tensorflow_gpu-0.12.1-cp27-none-linux_x86_64.whl

終於安裝成功!

參考材料

https://www.jianshu.com/p/f00c229cb4de