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

package install ignored because of python version "markers" #5972

Closed
jedie opened this issue Oct 11, 2023 · 2 comments
Closed

package install ignored because of python version "markers" #5972

jedie opened this issue Oct 11, 2023 · 2 comments

Comments

@jedie
Copy link

jedie commented Oct 11, 2023

I get some troubles about missing packages. With install --verbose i see the reason, e.g.:

Ignoring beautiful-barcode: markers 'python_version >= "3.6" and python_full_version < "4.0.0"' don't match your environment
Ignoring beautifulsoup4: markers 'python_full_version >= "3.6.0"' don't match your environment
Ignoring charset-normalizer: markers 'python_full_version >= "3.7.0"' don't match your environment
Ignoring flake8: markers 'python_full_version >= "3.8.1"' don't match your environment
Ignoring isort: markers 'python_full_version >= "3.8.0"' don't match your environment

I have Python 3.11, so these "doesn't match" is wrong.
But it depend on which Python i really have installed!

Currently i use LinuxMint and there is only Python 3.11.0~rc1-1~22.04 and i get the errors. I thought it was because it was only an RC version. So i used ppa:deadsnakes/ppa to get a newer Python 3.11 Version and it's currently 3.11.5
The boring thing about the PPA Version: It doesn't provide pip/ensurepip ... So i have to bootstrap via get-pip.py, install pipenv and the wrong matching is away...

But the get-pip.py solution is boring. So i decided to deinstall the PPA version and install Python 3.11 from source... I get:

>>> sys.version
'3.11.6+ (heads/3.11:79b81d1, Oct 11 2023, 13:42:51) [GCC 11.4.0]'
>>> sys.version_info
sys.version_info(major=3, minor=11, micro=6, releaselevel='final', serial=0)

and now i have the wrong matching errors back :(

tl;td;

  • Python 3.11.0 rc1 -> error: "don't match your environment"
  • Python 3.11.5 -> worked
  • Python 3.11.6+ -> error: "don't match your environment"

I seems it doesn't depends on pipenv and pip Version: I tried some downgrades from pipenv 2023.10.3 and pip 23.2.1 without success.

$ pipenv --support

Pipenv version: '2023.10.3'

Pipenv location: '/home/jens/.local/pipx/venvs/pipenv/lib/python3.11/site-packages/pipenv'

Python location: '/home/jens/.local/pipx/venvs/pipenv/bin/python'

OS Name: 'posix'

User pip version: '23.2.1'

user Python installations found:

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.11.6',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '6.2.0-10027-tuxedo',
 'platform_system': 'Linux',
 'platform_version': '#33 SMP PREEMPT_DYNAMIC Wed Sep 27 15:55:17 UTC 2023',
 'python_full_version': '3.11.6+',
 'python_version': '3.11',
 'sys_platform': 'linux'}
@matteius
Copy link
Member

Would need to be addressed in https://github.com/pypa/packaging

@jedie
Copy link
Author

jedie commented Oct 11, 2023

Maybe... Think pypa/packaging#522 addressed this.

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