pip3 install XXX 出现[WinError 10061] 由于目标计算机积极拒 绝,无法连接。',))': /simple/you-get/

本来使用you-get下载视频,但是没法下载

G:\go>you-get https://www.bilibili.com/video/av42051665/?p=2
you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get:   (1) Rule out any network problem.
you-get:   (2) Make sure you-get is up-to-date.
you-get:   (3) Check if the issue is already known, on
you-get:         https://github.com/soimort/you-get/wiki/Known-Bugs
you-get:         https://github.com/soimort/you-get/issues
you-get:   (4) Run the command with '--debug' option,
you-get:       and report this issue with the full output.

于是打算进行更新you-get

G:\go>pip3 install --upgrade you-get
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) a
fter connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionE
rror(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒
绝,无法连接。',))': /simple/you-get/

于是卸载you-get 重新安装,卸载倒是没有问题,但重新安装的时候又出现

G:\go>pip3 install you-get
Collecting you-get
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectio
nError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极
拒绝,无法连接。',))': /simple/you-get/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectio
nError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极
拒绝,无法连接。',))': /simple/you-get/

 分析:

可能是网络出了问题

解决:

打开ie,把√全部取消勾选

pip3 install XXX 出现[WinError 10061] 由于目标计算机积极拒 绝,无法连接。',))': /simple/you-get/_第1张图片

 

Collecting you-get
  Downloading https://files.pythonhosted.org/packages/25/70/e12440e474ce3b704238
29fd44f7853a5ce5af043b93ad31127f6ea4c72a/you_get-0.4.1205-py3-none-any.whl (204k
B)
    45% |██████████████▌                 | 92kB 110kB/s eta 0:00:
    50% |████████████████                | 102kB 94kB/s eta 0:00
    55% |█████████████████▌              | 112kB 94kB/s eta 0:
    60% |███████████████████             | 122kB 95kB/s eta 0
    65% |█████████████████████           | 133kB 75kB/s eta
    70% |██████████████████████▌         | 143kB 93kB/s e
    75% |████████████████████████        | 153kB 122kB/s
    80% |█████████████████████████▌      | 163kB 122kB
    85% |███████████████████████████     | 174kB 122k
    90% |█████████████████████████████   | 184kB 93
    95% |██████████████████████████████▌ | 194kB
    100% |████████████████████████████████| 204k
B 118kB/s
Installing collected packages: you-get
Successfully installed you-get-0.4.1205

试一下是否可以下载

pip3 install XXX 出现[WinError 10061] 由于目标计算机积极拒 绝,无法连接。',))': /simple/you-get/_第2张图片

没问题

你可能感兴趣的:(Python)