问题描述:
Anaconda prompt里面能找到tensorflow-gpu模块。但是activate tensorflow后不能import tensorflow。显示错误:No module named ‘tensorflow’
tensorflow安装问题(一)
tensorflow安装问题(一)

解决办法:
1.用管理员身份打开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

2.重装Anaconda

总结:要想tensorflow可以正确的import进spyder,则必须是spyder安装在tensorflow环境下,否则会报错。
spyder

相关文章:

  • 2021-08-02
  • 2021-10-12
  • 2021-12-13
  • 2021-04-04
  • 2022-12-23
  • 2021-12-29
  • 2021-06-15
  • 2022-01-17
猜你喜欢
  • 2021-08-28
  • 2021-08-21
  • 2021-05-27
  • 2021-11-17
  • 2022-01-20
  • 2021-06-12
  • 2021-05-01
相关资源
相似解决方案