Search code examples
pythonwindowspipproxy

Can't install packages for Python (3.11.4) (working through proxy server on windows 10)


Trying to install packages via PIP (in command line and VS code)

pip install aiogram

An error of the following type is output

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required'))': /simple/aiogram/ ERROR: Could not find a version that satisfies the requirement aiogram (from versions: none) ERROR: No matching distribution found for aiogram

The proxy in the pip.ini file is written in the format proxy=http://user:pass@proxyserver:8080/

doesn't help(


Solution

  • it works like this pip install aiogram --proxy http://user:pass@proxyserver:8080/