Issues with importing tensorflow python 3.7 on win

2019-08-24 23:48发布

I have issues with importing tensorflow on my computer. After I received errors initially, I reinstalled Anaconda with the newest version Anaconda 5.3 for wihndows - python 3.7 . For the installation I used the following commands on cmd:

  • conda install tensorflow-gpu - got an error because of different versions, and continued with the following:
  • conda create -n Tensorflow anaconda python=3.7 - installed some packages , as required
  • activate Tensorflow
  • pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl --> Got the following error : tensorflow-1.1.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.

Afterwards I tried to import it on jupyter notebook anyway and got error again:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-64156d691fe5> in <module>()
----> 1 import tensorflow as tf

ModuleNotFoundError: No module named 'tensorflow'

Can anyone advise how can I solve it?

1条回答
孤傲高冷的网名
2楼-- · 2019-08-25 00:30

just uninstall your python 3.7.xxxx versions,then install python 3.6.xx or lower version,now you can run pip install tensorflow successfully. don't forget reset your ide's python path and reinstall other packages.

查看更多
登录 后发表回答