Windows+spyder中no module named 'tensorflow'解决方法

按照教程安装完TensorFlow和Anaconda后可以从CMD中import tensorflow,在spyder中却出现no module named 'tensorflow'错误,可以尝试以下方法。
用管理员身份打开CMD

#if tensorflow virtual env has been created, remove it first
conda remove --name tensorflow --all
conda create -n tensorflow python=3.5 anaconda
activate tensorflow
conda install spyder
conda install ipython
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
spyder
http://stackoverflow.com/questions/43315205/installing-tensorflow-with-pip-python-3-5-anaconda-in-windows

你可能感兴趣的:(Windows+spyder中no module named 'tensorflow'解决方法)