您好,欢迎来到爱玩科技网。
搜索
您的当前位置:首页如何用anaconda安装tensorflow

如何用anaconda安装tensorflow

来源:爱玩科技网

tensorflow没正确安装导致无法 import tensorflow under python

错误信息如下:

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named tensorflow

解决方法:

$ conda install virtualenv # suggested by the output of terminal not using pip install
$ conda create --name=tensorflow_env python=2.7
$ source activate tensorflow_env
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_.whl  

参考资料:

https://github.com/tensorflow/tensorflow

https://github.com/tensorflow/tensorflow/issues/7

https://www.scivision.co/install-cuda-accelerate-for-anaconda-python/

https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- aiwanbo.com 版权所有 赣ICP备2024042808号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务