I am getting an InvalidArchiveError in anaconda prompt when I am trying to install spacy. How to solve it?

☆樱花仙子☆ 提交于 2020-07-18 06:13:43

问题


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)')


回答1:


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

I was then able to run

conda install -c conda-forge libarchive

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




回答2:


The issue is with corrupt openssl package. You need to first delete all openssl pkg files and reinstall them. This is what I did:

# 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

That reinstall openssl and everything will be back to normal.



来源:https://stackoverflow.com/questions/61726576/i-am-getting-an-invalidarchiveerror-in-anaconda-prompt-when-i-am-trying-to-insta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!