使用Scoop安装Python失败:dark组件下载出错求助
Scoop安装Python时dark组件下载失败的解决方案
问题情况
执行scoop install python后,系统自动清理之前安装失败的dark组件,但在安装dark 3.11.2版本时,aria2下载对应zip文件触发网络错误导致安装终止,更换网络、关闭防火墙后问题仍未解决。具体报错信息:
scoop install python WARN Purging previous failed installation of dark. ERROR 'dark' isn't installed correctly. Removing older version (3.11.2). 'dark' was uninstalled. WARN Scoop uses 'aria2c' for multi-connection downloads. WARN Should it cause issues, run 'scoop config aria2-enabled false' to disable it. WARN To disable this warning, run 'scoop config aria2-warning-enabled false'. Installing 'dark' (3.11.2) [64bit] from main bucket Starting download with aria2 ... Download: 07/01 00:31:47 [ERROR] CUID#8 - Download aborted. URI=https://raw.githubusercontent.com/ScoopInstaller/BinaryDownload: Exception: [AbstractCommand.cc:312] errorCode=1 Network problem has occurred. cause:The requested address is Download: Download Results: Download: gid |stat|avg speed |path/URI Download: ======+====+===========+======================================================= Download: 61026e|ERR | 0B/s|D:/scoop/cache/dark#3.11.2#https_raw.githubusercontent.com_ScoopInstaller_Binary_master_dark_dark-3.11.2.zip Download: Status Legend: Download: (ERR):error occurred. Download: aria2 will resume download if the transfer is restarted. Download: If there are any errors, then see the log file. See '-l' option in help/man page for details. ERROR Download failed! (Error 1) An unknown error occurred ERROR https://raw.githubusercontent.com/ScoopInstaller/Binary/master/dark/dark-3.11.2.zip referer=https://raw.githubusercontent.com/ScoopInstaller/Binary/master/dark/ dir=D:\scoop\cache out=dark#3.11.2#https_raw.githubusercontent.com_ScoopInstaller_Binary_master_dark_dark-3.11.2.zip ERROR & 'D:\scoop\apps\aria2\current\aria2c.exe' --input-file='D:\scoop\cache\dark.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/5.1 (Windows NT 10.0; Win64; x64; Desktop)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=9296 --continue --summary-interval=0 --auto-save-interval=1 Please try again or create a new issue by using the following link and paste your console output: https://github.com/ScoopInstaller/Main/issues/new?title=dark%403.11.2%3a+download+via+aria2+failed
解决方案
禁用aria2多线程下载:
执行以下命令关闭aria2,改用单线程下载:scoop config aria2-enabled false之后重新运行
scoop install python即可。手动下载dark组件到缓存:
- 手动下载dark 3.11.2的压缩包(对应报错中的链接)。
- 将文件重命名为
dark#3.11.2#https_raw.githubusercontent.com_ScoopInstaller_Binary_master_dark_dark-3.11.2.zip,放入Scoop缓存目录(默认路径为D:\scoop\cache)。 - 重新执行
scoop install python,Scoop会直接使用缓存文件完成安装。
重置缓存并更新Scoop:
- 清理所有Scoop缓存:
scoop cache rm * - 更新Scoop及所有bucket:
scoop update - 再次尝试安装Python:
scoop install python
- 清理所有Scoop缓存:
内容的提问来源于stack exchange,提问作者Eikoo
相关产品推荐
相关产品推荐

