Pycharm pip install wont work behind a proxy

There might be a couple of reasons for your issue. The first that come to mind are:

  • did you try to go to Python3 executable path and try the same command from CMD ?

    pip3.exe install --proxy=https://username:password@proxy:port packageName
    
  • you can also try the same command as above, but a bit changed:

    pip3.exe install packageName --proxy=https://username:password@proxy:port
    
  • are you sure the credentials are ok ? (apparently the connection was successfull, I just saw the first image)

  • is the proxy up ? (apparently the connection was successfull, I just saw the first image)

I'm using the latter command and it works fine with Python 3.5.x on Windows.


Create a System Environment Variable HTTPS_PROXY or HTTP_PROXY in windows with required authentication (https://user:password@proxy:port) in windows and restart Pycharm.

Then, without specifying proxy configuration inside Pycharm, install the package.


This is best solution :

pip install requests

If that command is not work in Pycharm, reason is proxy or web filtering and something like this.

For fixing this problem you could do these steps :

1. Go to pypi.org

2. Then find your package ( requests )

3. Then in Download section copy .targz link address

4. In Pycharm terminal type : pip install (your link address that you copied)

5. Now press enter, If you will know your package would need some dependencies so

repeat these steps for dependencies.

  • Note: Be careful on version of package dependencies that you need to install before install your main package.

Or you will be able use Proxy with this command :

pip install --proxy=https://username:password@proxy:port YourPackageName