I Am Getting An Invalidarchiveerror In Anaconda Prompt When I Am Trying To Install Spacy. How To Solve It?
Solution 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.
Solution 2:
The better approach is to do a cleanup
conda clean --all
https://docs.conda.io/projects/conda/en/latest/commands/clean.html
Solution 3:
InvalidArchiveError when trying to install with conda can happen if you don't have enough free space on the hard disk. Make sure you have enough free space.
Solution 4:
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 arecd %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.
Post a Comment for "I Am Getting An Invalidarchiveerror In Anaconda Prompt When I Am Trying To Install Spacy. How To Solve It?"