0

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?

ivan_pozdeev
  • 33,874
  • 19
  • 107
  • 152
YN.
  • 27
  • 5
  • "got an error because of different versions" -- what is it? Please include the exact output. – ivan_pozdeev Nov 03 '18 at 14:53
  • This was the adviseI found here --> https://stackoverflow.com/questions/44240707/tensorflow-install-with-conda-conflict-unsatisfiableerror . I previously had python 3.6 on my computer, and decided to try the suggested solution which worked actually. – YN. Nov 03 '18 at 15:54
  • Initial error I got was from type "UnsatisfiableError: The following specifications were found to be in conflict" – YN. Nov 03 '18 at 15:55
  • Please include the exact output into the question. – ivan_pozdeev Nov 03 '18 at 17:05
  • It's critical to know what requires what to decide what specifically to install next. – ivan_pozdeev Nov 03 '18 at 17:09
  • this is the full description of the error:UnsatisfiableError: The following specifications were found to be in conflict: - tensorflow-gpu Use "conda info " to see the dependencies for each package. – YN. Nov 03 '18 at 17:39
  • 1
    I don't think Tensorflow is supported on Python 3.7 https://github.com/tensorflow/tensorflow/issues/17022 – c2huc2hu Nov 03 '18 at 17:57
  • Add it to the question. It's unreadable in comment and I suspect there is at least one more line. – ivan_pozdeev Nov 03 '18 at 21:23

1 Answers1

1

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.