Danny Dowshenko
Danny Dowshenko

Reputation: 25

Pip requirements aren't installing

I have Python package called shenko. Everything works and I have my code up on my code up on Github.

Now my question is after I install my package (sudo pip install shenko) why can't I get panda3d to install as well?

After installing my package I execute pip list and see shenko but not panda3d.

I have tried scouring the internet, I know its something simple but im just at my wits end. Any help or suggestions would be amazing.

Thank you in advance.

Upvotes: 0

Views: 171

Answers (1)

Tom
Tom

Reputation: 1686

Listing dependencies in your requirements_dev.txt requires you to run pip install -r requirements-dev.txt. Running pip install shenko will not install these.

Instead you should list your package's runtime dependencies in the setup.py as the install_requires argument. You've already got this but have a small mistake. In the the code your referenced you need to change:

install_requires='requirements' to install_requires=requirements

since you are trying to reference a list of requirements. Then add panda3d to your existing requirements list. So it should now look like this:

requirements = [
    'Click>=6.0',
    'panda3D==1.10.0',
]

Upvotes: 2

Related Questions