install tensorflow 遇到的问题

来源:互联网 发布:网络会员制营销 通过 编辑:程序博客网 时间:2024/06/05 07:30

1.importError:No module named tensorflow

$ pythonPython 2.7.10 (default, Oct 23 2015, 18:05:06)[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import tensor flowTraceback (most recent call last):  File "<stdin>", line 1, in <module>ImportError: No module named tensor flow>>>

解决方法

$source activate tensorflow
$ sudo pip install ipykernel
$ python -m ipykernel install --user --name tensorflow --display-name "conda env tensorflow"

2.