python导入tensorflow,在Windows 10上导入Tensorflow Python 3.7的问题

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)

in ()

----> 1 import tensorflow as tf

ModuleNotFoundError: No module named 'tensorflow'

Can anyone advise how can I solve it?

解决方案

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值