什么是https://pypi.python.org/pypi/pip/json,为什么我需要它?

时间:2018-12-03 11:42:58

标签: python pip artifactory

我为工件配置了Python3安装,因为我的服务器超出了防火墙,并且我没有机会到达pypi.python.org。安装软件包“成功”,但最后出现错误:

...
Cleaning up...
Looking up "https://pypi.python.org/pypi/pip/json" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
There was an error checking the latest version of pip
Traceback (most recent call last):
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 142, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py", line 98, in create_connection
    raise err
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py", line 88, in create_connection
    sock.connect(sa)
OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

我将pip3配置为使用人工制品,它可以访问软件包,但安装不是100%正确。

$ cat ~/.pip/pip.conf
[global]
index-url = https://artifactory/api/pypi/pypi-remote/simple

[index]
index-url = https://artifactory/api/pypi/pypi-remote/simple

还有其他要配置的内容吗?还是pip错误? 我使用RHEL7 SCL安装中的pip 9.0.1

0 个答案:

没有答案