环境:win10 64位
python版本:3.6.8
使用pip安装TensorFlow时不断报错:
Could not find a version that satisfies the requirement tensorflow
解决步骤:
一、检测是不是pip版本过低,进行升级
python -m pip install --upgrade pip
二、检查网络的问题,网络不稳定时,我们用国内的镜像源来加速
pip install TensorFlow(具体你所要安装的包名) -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
三、如果以上两步都没问题还是同样报错,那还有一种情况就是你所安装的python版本不正确,例如我就是因为之前安装的是32位
选择合适的版本重新安装:https://www.python.org/getit/
版本区别:
x86是32位,x86-64是64位。
web-based installer 是需要通过联网完成安装,就是在线安装版。
executable installer 是可执行文件(*.exe)方式安装
embeddable zip file 嵌入式版本,就是zip解压免安装绿色版,可以集成到其它应用中。
安装好以后在 cmd 中使用时(如pip)如果遇到以下报错:
Fatal error in launcher:Unable to create process using…
意思是启动程序中出现致命错误,不能使用某个路径创造一个进程。
原因是因为环境变量里配置的是上一个版本的python,这个时候重新配置path即可。