InvalidArchiveError when executing conda install notebook

本秂侑毒 提交于 2021-01-22 09:19:53

问题


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

I have tried different versions of notebook and reinstalled anaconda and miniconda many times. Nothing seems to work.


回答1:


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.: Make sure you installed Anaconda or Miniconda into a directory that contains only 7-bit ASCII characters and no spaces, such as C:\anaconda!



来源:https://stackoverflow.com/questions/59657306/invalidarchiveerror-when-executing-conda-install-notebook

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