我这两天一直安装tensorflow出错,在python3.5环境下安装tensorflow1.0
方法一:
1.wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp34-cp34m-linux_x86_64.whl #安装whl
2.mv tensorflow-1.0.0-cp34-cp34m-linux_x86_64.whl tensorflow-1.0.0-py3-none-linux_x86_64.whl #重新命名
3. sudo pip3 install --upgrade tensorflow-1.0.0-py3-none-linux_x86_64.whl #pip安装
方法二:
pip install tensorflow-gpu==1.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com##直接用豆瓣源安装
还有几个好用的源:
1.豆瓣:http://pypi.douban.com/
2.V2EX:http://pypi.v2ex.com/
3.华中理工:http://pypi.hustunique.com/
4.山东理工:http://pypi.sdutlinux.org/
5.中科大:http://pypi.mirrors.ustc.edu.cn/