Sah*_*ddy 12 python anaconda spacy
InvalidArchiveError('存档错误 C:\Users\Sahaja Reddy\Anaconda3\pkgs\openssl-1.1.1g-he774522_0.conda。您可能需要删除并重新下载或重新创建此文件。来自 libarchive 的消息是:\ n\n无法取消链接 (errno=22, retcode=-25, archive_p=1873471744752)')
小智 27
我遇到了同样的问题 - 我打开了一个 IPython 实例,它保持 Openssl 句柄打开,所以我无法删除 Prayson 上面提到的 Openssl 文件夹。通过命令提示符关闭所有 IPython 和 Python 实例后,或在命令提示符中输入以下内容:
TASKKILL /F /IM python.exe
Run Code Online (Sandbox Code Playgroud)
然后我就可以跑了
conda install -c conda-forge libarchive
Run Code Online (Sandbox Code Playgroud)
(如前所述)更新 openssl 库而无需实际删除任何内容。在那之后,一切都恢复了正常。
小智 8
更好的方法是进行清理
conda clean --all
Run Code Online (Sandbox Code Playgroud)
https://docs.conda.io/projects/conda/en/latest/commands/clean.html
问题在于 openssl 软件包损坏。您需要首先删除所有 openssl pkg 文件并重新安装它们。这就是我所做的:
# as the error show where the openssl files are
cd %USERPROFILE%\AppData\Local\Continuum\miniconda3\pkgs\
# with linux I did rm -fr openssl*
DEL /Q /F /S "openssl*"
# install openssl from libarchive
conda install -c conda-forge libarchive
Run Code Online (Sandbox Code Playgroud)
重新安装 openssl 一切都会恢复正常。