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.

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4rsvws0b/numpy/

See original GitHub issue
  • while running ./scripts/start.sh
  • on ubuntu-15.10 - 64-bit
  • Running from numpy source directory.Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-4rsvws0b/numpy/setup.py", line 196, in <module>
        setup_package()
      File "/tmp/pip-build-4rsvws0b/numpy/setup.py", line 189, in setup_package
        configuration=configuration )
      File "/tmp/pip-build-4rsvws0b/numpy/build/py3k/numpy/distutils/core.py", line 152, in setup
        config = configuration()
      File "/tmp/pip-build-4rsvws0b/numpy/setup.py", line 142, in configuration
        config.add_subpackage('numpy')
      File "/tmp/pip-build-4rsvws0b/numpy/build/py3k/numpy/distutils/misc_util.py", line 1002, in add_subpackage
        caller_level = 2)
      File "/tmp/pip-build-4rsvws0b/numpy/build/py3k/numpy/distutils/misc_util.py", line 971, in get_subpackage
        caller_level = caller_level + 1)
      File "/tmp/pip-build-4rsvws0b/numpy/build/py3k/numpy/distutils/misc_util.py", line 908, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "numpy/setup.py", line 5, in configuration
        config = Configuration('numpy',parent_package,top_path)
      File "/tmp/pip-build-4rsvws0b/numpy/build/py3k/numpy/distutils/misc_util.py", line 743, in __init__
        raise ValueError("%r is not a directory" % (package_path,))
    ValueError: 'build/py3k/numpy' is not a directory
    Converting to Python3 via 2to3...
    
    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4rsvws0b/numpy/
    

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ishankhare07commented, Apr 20, 2016

@seanlip you were right. This confusion was because I installed pip from get-pip.py which started pointing my default pip to python3.4 version pip.

fixing this and rolling back to pip and pip3 provided by debian (apt-get) solved this error.

But I guess I found the reason behind #1580 during the process. It fails when using the --target flag. Will update it there in detail

0reactions
apoorv1997commented, Mar 10, 2019

I ran into the same error while installing PIL, but it also show a syntax error. I’m attaching a screenshot for the same, would be really helpful if anybody can help.

Screenshot from 2019-03-10 14-21-34

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command "python setup.py egg_info" failed with error code 1 ...
Hi I try to install the package neuralpy in Python2.7 using this command in terminal pip install neuralpy And I got this error...
Read more >
How to Fix 'Python Setup.py egg_info' Failed with Error Code 1
One major cause of the command "python setup.py egg_info" failing with error code 1 is due to the missing ez_setup module in your...
Read more >
"pip install unroll": "python setup.py egg_info" failed with error ...
When trying to install unroll via pip, I get the following error: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/5v/ ......
Read more >
Python Setup.py egg_info Failed with Error Code 1? [Fixed]
What causes the python setup.py egg_info failed with error code 1? According to user reports, the error often occurs when your pip or...
Read more >
'Command "python setup.py egg_info" failed with error code 1 ...
The error code 1 is defined as Operation not permitted in python standard errno system symbols. This issue is mostly caused when your ......
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