本人在安装tensorflow的过程中发现了如下错误
-----------------------------------------------------------------
pip._vendor.requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://mirrors.aliyun.com/pypi/simple/pkg-resources/
-----------------------------------------------------------------
实际上是pkg-resoures中还有没有完全同步的资源.可以修改pip.conf为国外的源, 先备份, 更新后再备份过来. 以unbuntu 为例:
# mv /root/.pip/pip.conf /root/.pip/pip.conf.bk
# vi /root/.pip/pip.conf
修改如下:
#-----------------------------------------------------------------
[global]
#index-url=http://mirrors.aliyun.com/pypi/simple/
index-url = https://pypi.python.org/simple/
[install]
#trusted-host=mirrors.aliyun.com
trusted-host=pypi.python.org
#-----------------------------------------------------------------
然后在运行安装命令, 问题解决.
后面恢复的话
# mv /root/.pip/pip.conf.bk /root/.pip/pip.conf