question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotADirectoryError: [Errno 20] when installing using PyCharm Project Interpreter

See original GitHub issue

I am encountering the following error when installing to my virtualenv using Project Interpreter from PyCharm Community Edition 4.5.3.

Collecting spacy
  Using cached spacy-0.93.tar.gz
    Complete output from command python setup.py egg_info:
    warning: build_py: byte-compiling is disabled, skipping.

    warning: install_lib: byte-compiling is disabled, skipping.

    zip_safe flag not set; analyzing archive contents...

    Installed /tmp/pycharm-packaging0.tmp/spacy/.eggs/headers_workaround-0.17-py3.4.egg
    running egg_info
    creating pip-egg-info/spacy.egg-info
    writing top-level names to pip-egg-info/spacy.egg-info/top_level.txt
    writing requirements to pip-egg-info/spacy.egg-info/requires.txt
    writing dependency_links to pip-egg-info/spacy.egg-info/dependency_links.txt
    writing pip-egg-info/spacy.egg-info/PKG-INFO
    writing manifest file 'pip-egg-info/spacy.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/spacy.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/spacy.egg-info/SOURCES.txt'
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pycharm-packaging0.tmp/spacy/setup.py", line 176, in <module>
        main(MOD_NAMES, use_cython)
      File "/tmp/pycharm-packaging0.tmp/spacy/setup.py", line 151, in main
        run_setup(exts)
      File "/tmp/pycharm-packaging0.tmp/spacy/setup.py", line 133, in run_setup
        headers_workaround.install_headers('murmurhash')
      File "/tmp/pycharm-packaging0.tmp/spacy/.eggs/headers_workaround-0.17-py3.4.egg/headers_workaround/__init__.py", line 30, in install_headers
    NotADirectoryError: [Errno 20] Not a directory: '/tmp/pycharm-packaging0.tmp/spacy/.eggs/headers_workaround-0.17-py3.4.egg/headers_workaround/murmurhash'

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pycharm-packaging0.tmp/spacy

Workaround is to manually install using venv/bin/pip3.4 install spacy. Not sure why that works vs using PyCharm to install it using pip.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
honnibalcommented, Dec 2, 2015

Super simple temporary solution I totally should’ve seen sooner:

pip install headers_workaround
pip install spacy

This worked for me with PyCharm 5.0

0reactions
lock[bot]commented, May 9, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create a virtual environment
Hi! Whenever I create a new project, or try to create a run configuration, an error occurs saying: "Failed to create a virtual...
Read more >
Changing pip installation path; OSError: [Errno 20] Not a ...
If your project in PyCharm uses the same interpreter, it should recognize the newly installed package just fine. – hoefling. Sep 22, 2018...
Read more >
Installing PyCharm - CS106A
Installing Python. In order to be able to run Python programs on your computer, you need to install a Python Interpreter. An interpreter...
Read more >
Setting up PyCharm to reference ArcPy? - GIS Stack Exchange
theJones is correct, close all your projects and go to the program settings and search for Python Interpreters.
Read more >
PyCharm for Productive Python Development (Guide)
Installing PyCharm ; Writing Code in PyCharm; Running Code in PyCharm; Debugging in PyCharm; Testing in PyCharm; Editing an Existing Project in PyCharm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found