执行conda安装笔记本时出现InvalidArchiveError [英] InvalidArchiveError when executing conda install notebook
问题描述
我在Windows 10企业版上运行了conda 4.8.1,每当我尝试安装笔记本时,它就会向我显示以下错误.
I have conda 4.8.1 running on windows 10 enterprise edition and it is showing me following error whenever I try to install notebook.
InvalidArchiveError("Error with archive D:\\Miniconda3\\pkgs\\notebook-6.0.2-py37_0ujelie94\\pkg-notebook-6.0.2-py37_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nCan't create '\\\\?\\D:\\Miniconda3\\pkgs\\notebook-6.0.2-py37_0\\Lib\\site-packages\\notebook\\static\\components\\MathJax\\extensions\\a11y\\invalid_keypress.mp3'")
我尝试了不同版本的笔记本电脑,并多次重新安装了Anaconda和miniconda.似乎什么都没用.
I have tried different versions of notebook and reinstalled anaconda and miniconda many times. Nothing seems to work.
推荐答案
我在Ubuntu 18.04上遇到了同样的问题,我使用了conda clean -a
,然后它完美地工作了.
实际上,conda clean -a
所做的是清除压缩的.bz文件并删除旧版本的软件包文件夹,而对新文件夹则不执行任何操作.
I had the same problem on Ubuntu 18.04, I used conda clean -a
and then it works perfectly.
Actually what conda clean -a
does is cleaning the compressed .bz files and deleting older versions of package folders and does nothing to the new ones.
P.S .:确保将Anaconda或Miniconda安装到仅包含7位ASCII字符且没有空格的目录中,例如C:\ anaconda!
P.S.: Make sure you installed Anaconda or Miniconda into a directory that contains only 7-bit ASCII characters and no spaces, such as C:\anaconda!
这篇关于执行conda安装笔记本时出现InvalidArchiveError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!