Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with setup.py install_requires? #47

Closed
leblancfg opened this issue Sep 28, 2017 · 2 comments
Closed

Error with setup.py install_requires? #47

leblancfg opened this issue Sep 28, 2017 · 2 comments

Comments

@leblancfg
Copy link

leblancfg commented Sep 28, 2017

Expected behaviour

I can pip install opencv-python without a hitch on my dev box, but am running into problems when setup.py's install_requires is trying to do it. I'm assuming the issue lies here, perhaps some of you are familiar with the error message?

Actual behaviour

Processing dependencies for autocrop==0.1                                      
Searching for opencv-python            
Reading https://pypi.python.org/simple/opencv-python/                          
No local packages or working download links found for opencv-python            
error: Could not find suitable distribution for Requirement.parse('opencv-python')                                                                             

Steps to reproduce

  • example code
setup(install_requires='opencv-python')

in my package's setup.py, when running python setup.py install

  • operating system

    • Manjaro Linux
  • architecture (e.g. x86)

    • x86
  • opencv-python version

    • Latest (any)
@skvark
Copy link
Member

skvark commented Sep 28, 2017

Use pip install .

I'm pretty sure that setuptools doesn't support / understand wheel dependencies.

@leblancfg
Copy link
Author

Ah, that explains it, thanks. Using pip install . instead of python setup.py install seems clear now, but totally didn't at the time. The joys of Python packaging 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants