Feel stuck when install Python library behind a proxy server

Hi guys,

When you want to install Python library but you connect to internet through a proxy server. Don’t forget to run two commands below.

SET HTTP_PROXY=<proxyHost>:<proxyPort>
SET HTTPS_PROXY=<proxyHost>:<proxyPort>

Example :

SET HTTPS_PROXY=192.168.1.1:8080
SET HTTP_PROXY=192.168.1.1:8080

After that you can use pip to install Python library.

pip install matplotlib

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s