TensorFlow安装过程问题汇总

1. 问题: conda search numpy 以及 conda search --full-name python 失败。

失败的现象:

Loading channels: failed

CondaHTTPError: HTTP 404 NOT FOUND for url <http://pypi.douban.com/simple/noarch/repodata.json>

Elapsed: 00:00.158756

The remote server could not find the noarch directory for the

requested channel with url: http://pypi.douban.com/simple

 

You will need to adjust your conda configuration to proceed.

Use `conda config --show channels` to view your configuration's current state.

Further configuration help can be found at <https://conda.io/docs/config.html>.

 

使用conda安装命令时一直出现问题,因为从2019年4月添加的国内镜像都不能用了

安装过程中出现以下问题:(历尽千辛万苦,终于才查到原来是清华源,腾讯源都不能用了)

解决方法:

vim ~/.condarc #查看配置文件 Windows下在 C:\Users\root\.condarc

把之前添加的源都删掉,使用默认的就可以

失败的原因是因为--见链接新闻: https://www.linuxidc.com/Linux/2019-04/158330.htm

 

 

2.安装的问题,没能解决安装问题,使用第二个方法

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

原因是下载TensorFlow的版本不支持cpu的AVX2编译。可能是因为安装时使用的pip install tensorflow ,这样默认会下载X86_64的SIMD版本。

解决办法:在创建的tensorflow环境中卸载: pip uninstall tensorflow

选择对应的版本: https://github.com/fo40225/tensorflow-windows-wheel

pip install --user tensorflow-1.14.0-cp36-cp36m-win_amd64.whl

 

3.安装的问题(使用上面的命令后出现如下错误,因为本地没有这个文件,要使用全路径)

Processing c:\users\root\tensorflow-1.6.0-cp36-cp36m-win_amd64.whl

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\root\\tensorflow-1.6.0-cp36-cp36m-win_amd64.whl'

安装的时候使用全路径

pip install https://files.pythonhosted.org/packages/bf/4a/5c86ed8b245aa48f9f819b13a0a9039e9126ba19fdd0c7e0b8026c12315a/tensorflow-1.14.0-cp36-cp36m-win_amd64.whl

 

4.问题: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决办法:pip install -U --ignore-installed wrapt enum34 simplejson netaddr

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值