pip install pandas failed because of environment error

If you are logged as Administrator user and still facing this issue. There could be three reasons:

  1. Your machine/company's firewall is not allowing you to install/upgrade any module. (Contact support department).
  2. The WiFi is slow. (Fix is mentioned by other users).
  3. Sounds silly but most common reason, you have not rebooted the machine after installing Python on the guest.(Try rebooting).

Let me know if it helped you or anyone reading this comment.


Looks like you're trying to install on a corporate network with a firewall in place, can you connect to another WiFi or hot spot and try downloading again?


It seems that you have slow connection to the server. Try increasing the timeout:

sudo pip install --default-timeout=120 pandas

Alternatively, you may use:

export PIP_DEFAULT_TIMEOUT=120

This is the amount of time (in seconds) pip will wait before deciding that the connection timed out (now it's 15 seconds in your case - "read timeout=15")

Tags:

Python

Pandas

Pip