win10系统下anaconda安装TensorFlow的CPU版本

首先确保你已经装好了anaconda
使用conda --version可以查看你的anaconda版本
新建一个python版本3.6的环境(环境名字为tensorFlow):conda create --name tensorflow python=3.6
查看你当前已经存在的环境 conda info --envs
使用activate tensorflow激活你刚才创建的环境
在环境里进行安装TensorFlow:pip install tensorflow==2.0.0-alpha0 -i https://pypi.tuna.tsinghua.edu.cn/simple (建议使用清华源)
安装完成后进入python环境,导入tensorflow

提示 FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
这是因为numpy的版本问题
重新安装numpy1.16.0即可解决

posted @ 2020-10-27 15:08  BruceWhisky  阅读(60)  评论(0)    收藏  举报