按照教程安装完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 tensorflow
spyder