1.安装Python3.5
在cmd中输入conda create --name python35 python=3.5 ,如果一次不成功可以多试几次
如图所示:
输入activate python35进入Python3.5环境中
输入deactivate退出
查询conda环境
conda info --envs
2.安装TensorFlow
如上图所示,安装过程出现错误
使用指令pip install --upgrade tensorflow
还会有错误
仔细看报错信息:
socket.timeout:the read operation timed out
出现超时错误,则需要设置超时时间
输入指令:
pip --default-timeout=100 install -U tensorflow
或pip --default-timeout=100 install --upgrade tensorflow
最后则可以安装成功
测试一下Tensorflow能不能使用:
可以使用但是报了一行提醒:
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
这个是什么意思呢?
Modern CPUs provide a lot of low-level instructions, besides the usual arithmetic and logic, known as extensions, e.g. SSE2, SSE4, AVX, etc. From the