我尝试在Windows命令提示符下使用pip命令安装Flask以及 virtualenv 但是显示错误。我该如何解决这个问题?
C:\Users\anupa>pip install Flask
Collecting Flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620E50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620DF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620C30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620E10>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06620C90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/flask/
Could not find a version that satisfies the requirement Flask (from versions: )
No matching distribution found for Flask
答案 0 :(得分:0)
尝试使用pip
命令,
$ pip install --proxy your_proxy_path Flask