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

pip installing to Python 2.7 installs the non 2.7 compatible version #73

Open
selimt opened this issue Oct 6, 2020 · 3 comments
Open

Comments

@selimt
Copy link

selimt commented Oct 6, 2020

It seems like pip installing the latest version of inject on Python 2.7 tries to install version 4.3.1 which is compatible with 3.6+ . Is there a way for it to resolve to the latest 2.7 compatible version?

Thanks.

@ivankorobkov
Copy link
Owner

Hi,

There is a table with supported versions in readme:

Python Inject Version
3.6+ 4.1+
3.5 4.0
< 3.5 3.*

You can install a specific version with:
pip install 'Inject==3.5.4'

@selimt
Copy link
Author

selimt commented Oct 7, 2020

Yes but if your setup.py contained the ‘python_requires’ option as specified here:

https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires

then pip would not try to install an incompatible release.

@ivankorobkov
Copy link
Owner

You may add it and make a pull request, if you want :-)

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