本文介绍了尝试安装spacy时,在蟒蛇提示中收到InvalidArchiveError.怎么解决呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

InvalidArchiveError('存档C:\ Users \ Sahaja Reddy \ Anaconda3 \ pkgs \ openssl-1.1.1g-he774522_0.conda的错误.您可能需要删除并重新下载或重新创建此文件.libarchive中的消息原为:\ n \ n无法取消链接(errno = 22,retcode = -25,archive_p = 1873471744752)')

InvalidArchiveError('Error with archive C:\Users\Sahaja Reddy\Anaconda3\pkgs\openssl-1.1.1g-he774522_0.conda. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nCould not unlink (errno=22, retcode=-25, archive_p=1873471744752)')

推荐答案

我遇到了同样的问题-我打开了一个IPython实例,该实例将Openssl句柄保持打开状态,因此我无法删除提到的Openssl文件夹以上是Prayson.关闭我所有的IPython&通过命令提示符或在命令提示符下输入以下内容的Python实例:

I had this same problem - I had an IPython instance open that was holding onto the Openssl handle open so I wasn't able to delete the Openssl folder as mentioned above by Prayson. After closing all of my IPython & Python instances through the command prompt, or entering the following in a command prompt:

TASKKILL /F /IM python.exe

然后我便可以运行

conda install -c conda-forge libarchive

(如前所述)来更新openssl库,而不必实际删除任何内容.之后,一切恢复正常.

(as mentioned previously) to update the openssl library without having to actually delete anything. After that, everything went back to normal.

这篇关于尝试安装spacy时,在蟒蛇提示中收到InvalidArchiveError.怎么解决呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:39
查看更多