Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InvalidArchiveError when executing conda install notebook

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.

like image 567
Somesh Narwade Avatar asked Jan 09 '20 04:01

Somesh Narwade


People also ask

Can I run conda on Jupyter notebook?

Jupyter Notebook can easily be installed using conda. Our plan is to only install it in the base environment, and then just switch between sub-environments to avoid setting up Jupyter Lab in each environment.


1 Answers

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!

like image 172
Ajal88 Avatar answered Oct 17 '22 14:10

Ajal88