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