2

I'm using Python 3.7.2 on my machine with internet access. The installation of any package gives me the following problem:

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.) How can this be fixed?

A.1) It seems that some institution blocks a particular access. How can I switch the download URLs?

A.2) Are there some alternative mirrors and how can I accees them?

Thanks in advance!

bumblebee
  • 1,811
  • 12
  • 19
Impulsleistung
  • 177
  • 3
  • 13

1 Answers1

1

add nameserver 8.8.8.8 to the /etc/resolv.conf file.

hassanzadeh.sd
  • 3,091
  • 1
  • 17
  • 26