我正在可访问互联网的机器上使用Python 3.7.2。任何软件包的安装都会给我带来以下问题:
M:>\pip install matplotlib
Collecting matplotlib Retrying
(Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x04127270>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed')': /simple/matplotlib/ Retrying
(Retry(total=3, connect=None, read=None, redirect=None, status=None))
after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x04127AD0>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed')': /simple/matplotlib/ Retrying
(Retry(total=2, connect=None, read=None, redirect=None, status=None))
after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x04127AB0>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed')': /simple/matplotlib/ Retrying
(Retry(total=1, connect=None, read=None, redirect=None, status=None))
after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x0414B390>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed')': /simple/matplotlib/ Retrying
(Retry(total=0, connect=None, read=None, redirect=None, status=None))
after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection
object at 0x0414B210>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed')': /simple/matplotlib/ Could not find a
version that satisfies the requirement matplotlib (from versions: ) No
matching distribution found for matplotlib
A。)如何解决?
A.1)似乎某些机构阻止了特定的访问。如何切换下载网址?
A.2)是否有其他替代镜子,我如何获得它们?
谢谢!
答案 0 :(得分:0)
将名称服务器8.8.8.8添加到/etc/resolv.conf文件中。