2

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 https://pypi.python.org/packages/2.7/i/ipython/ipython-2.3.1-py27-none-any.whl#md5=14b9c7c5280ded28777559c434947573 Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB downloaded ...

OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/ipython-1.2.1.egg-info'

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:

https://stackoverflow.com/questions/27413162/some-python-modules-available-only-with-sudo-others-only-without

Any ideas?

6
  • Have you tried using sudo before each command? I.e sudo pip install "ipython[notebook]"
    – Rickard B
    Dec 22, 2014 at 22:52
  • $ sudo conda update setuptools ==> sudo: conda: command not found $sudo which conda update setuptools ==> Error: Could not open u'/home/user/anaconda/pkgs/setuptools-7.0-py27_0.tar.bz2.part' for writing (seek).0 B/s
    – AJN
    Dec 23, 2014 at 1:01
  • hmm, 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/
    – Rickard B
    Dec 27, 2014 at 23:37
  • Thanks Richard. Indeed the problem was solved by cleaning /tmp from previous failed installations and by uninstalling (pip uninstall) packages mentioned in the permission errors (many packages involved) and reinstalling them (pip install)
    – AJN
    Dec 28, 2014 at 6:16
  • Richard, if you repost your comment as an answer I would mark it as an answered.
    – AJN
    Dec 28, 2014 at 6:21

1 Answer 1

1

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/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.