Ubuntu – Conda update : Permission issues


I have a frequent issue with python packages, in this case with conda updating packages:

ipython update

user:~$ conda update ipython

Proceed ([y]/n)? y

Fetching packages … Error: Could not open
u'/home/user/anaconda/pkgs/ipython-2.3.1-py27_0.tar.bz2.part' for
writing (seek).00 B/s

ipython notebook update

user:~$ pip install "ipython[notebook]"

–upgrade Downloading/unpacking
ipython[notebook] from
Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB downloaded

OSError: [Errno 13] Permission denied:

Storing debug log for failure in /home/user/.pip/pip.log

conda update setuptools

user:~$ conda update setuptools

Fetching package metadata: .. …
Proceed ([y]/n)? y

Fetching packages … Error: Could not open
u'/home/user/anaconda/pkgs/setuptools-7.0-py27_0.tar.bz2.part' for
writing (seek).0 B/s user:~$Fetching package metadata: .. …

Possible Hint:

This could be related to other issue accessing these packages from python script:


Any ideas?

Best Answer

Have you tried to reinstall it? It worked directly for me on one machine and on a VM I had to do a link from ~/anaconda/bin/conda to /usr/local/bin to get it to work. You can do a hardlink with sudo ln ~/anaconda/bin/conda /usr/local/bin/