pypa / pipx

Install and Run Python Applications in Isolated Environments
https://pipx.pypa.io
MIT License
10.64k stars 418 forks source link

pipx local-install reports "requires a different python", but not on install from pypi #1567

Open mcint opened 3 weeks ago

mcint commented 3 weeks ago

Describe the bug / How to reproduce / Expected behavior

Compare attempt to install from Pypi to local install from repo.

With python3.10 default for pipx from the environment, installing from pypi

$ pipx install venvstacks

No apps associated with package venvstacks or its dependencies. If you are attempting to install a library, pipx should not be used.
Consider using pip or a similar tool instead.

With the repository cloned, attempt to install yields more helpful advice:

~/repos/venvstacks$ pipx install .
ERROR: Package 'venvstacks' requires a different Python: 3.10.12 not in '>=3.11'
Cannot determine package name from spec '/home/user/repos/venvstacks'. Check package spec for errors.