I am trying to install and import numpy on my Mac but in the terminal of Pycharm, it comes up with a error message as shown below.
I am a relatively new coder in python so I am extremely confused.
Terminal:
pip3 install numpy
Error:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('\<pip.\_vendor.urllib3.connection.HTTPSConnection object at 0x1032e6660\>: Failed to establish a new connection: \[Errno 8\] nodename nor servname provided, or not known')': /simple/numpy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('\<pip.\_vendor.urllib3.connection.HTTPSConnection object at 0x1033182d0\>: Failed to establish a new connection: \[Errno 8\] nodename nor servname provided, or not known')': /simple/numpy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('\<pip.\_vendor.urllib3.connection.HTTPSConnection object at 0x103318410\>: Failed to establish a new connection: \[Errno 8\] nodename nor servname provided, or not known')': /simple/numpy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('\<pip.\_vendor.urllib3.connection.HTTPSConnection object at 0x103318550\>: Failed to establish a new connection: \[Errno 8\] nodename nor servname provided, or not known')': /simple/numpy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('\<pip.\_vendor.urllib3.connection.HTTPSConnection object at 0x103318690\>: Failed to establish a new connection: \[Errno 8\] nodename nor servname provided, or not known')': /simple/numpy/
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy
Failed to establish a new connection:suggests that the pip cannot connect to PyPi (Python Package Index). This can be due to unstable/no internet connection, proxy/firewall or missing/malformed pipy index url. See stackoverflow.com/questions/57648998/… for potential solutions.