0

I'm trying to install Python packages, specifically numpy and networkx, using PyCharm on a laptop running Gallium, and I keep getting:

IOError: [Errno 20] Not a directory: '/tmp/pip-build-xMS1YA/numpy/doc/f2py/oldnews.html'

The path that isn't a directory varies depending on what I'm doing. I tried this through the PyCharm IDE and by running a similar command through the command line, e.g., sudo pip install numpy.

I did see this question, which is similar, but the original poster reinstalled the OS as the solution, which I'd rather not do. I had installed PyCharm using these instructions:

sudo add-apt-repository ppa:mystic-mirage/pycharm
sudo apt-get update
sudo apt-get install pycharm

As with the SO question I linked above, I tried:

pip install headers_workaround
pip install spacy

but I also got that "Not a directory" error with spacy.

Community
  • 1
  • 1
Becca Dee
  • 1,530
  • 1
  • 24
  • 51

1 Answers1

1

When the other person reinstalled their OS I imagine the only thing that really mattered was reinstalling pip.

The instructions to reinstall pip can be found here. Assuming this issue is related to a bug in (your version of) pip running get-pip.py should fix the issue.

Community
  • 1
  • 1
Tadhg McDonald-Jensen
  • 20,699
  • 5
  • 35
  • 59