Error: package directory <project_name> 'does not exist

I have a simple Python package that I created. I copied the file setup.py

from Python docs , but when I run pip install .

I get the following error:

~/Projects/wolfgang (master) $ pip install . Processing /Users/Cisplatin/Projects/wolfgang
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/wolfgang.egg-info
    writing pip-egg-info/wolfgang.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/wolfgang.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/wolfgang.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/wolfgang.egg-info/SOURCES.txt'
    error: package directory 'wolfgang' does not exist

    ---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/k5/grp3jdnn5jvcd14ffvqyr9z00000gn/T/pip-pWAjtJ-build/

      

I tried searching the web and there seem to be some problems with GitHub or StackOverflow, but they all refer to something that is broken in the project itself, not in the file setup.py

. My program doesn't interfere with any command line arguments or anything, so I don't know why this is happening.

Here's a link to the actual file setup.py

I'm using if it helps.

+3


source share


1 answer


  • There is no setup.py in your repository because you removed it .

  • There should be a wolfgang subdirectory . Both __init__.py and vector.py must be in a subdirectory.



0


source







All Articles