You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When installing a package, by default pipx choses the latest version that is compatible with the version of Python that it uses. This typically works since newer versions of a package would usually use newer versions of Python, but if a package changes its required version of Python to be an earlier version, this can lead to confusing situations where pipx will chose an older version of the package. This isn't exactly a bug, but seems like maybe adding some kind of warning could be helpful (or maybe just a note in the documentation).
How to reproduce
Create package using a newer version of Python (e.g. 3.10.2 the pipx default Python in my case).
Upload the package to a private pypi repo.
Change the requirements of the package to an earlier version of Python, >=3.7, <3.8 in my case, and push that up to the pypi repo as a prerelease version.
Attempting to install the new prerelease package with: pipx install my_package --pip-args="--index-url=<private pypi index> --trusted-host=<private pypi host> --pre" installs the last compatible version of the package for the default pipx Python.
In order to correctly install the new prerelease package, you have to use: pipx install my_package --pip-args="--index-url=<private pypi index> --trusted-host=<private pypi host> --pre" --python <path to appropriate Python version>
Expected behavior
Would be nice to have a warning about this or maybe a note in the docs.
The text was updated successfully, but these errors were encountered:
Describe the bug
When installing a package, by default
pipx
choses the latest version that is compatible with the version of Python that it uses. This typically works since newer versions of a package would usually use newer versions of Python, but if a package changes its required version of Python to be an earlier version, this can lead to confusing situations wherepipx
will chose an older version of the package. This isn't exactly a bug, but seems like maybe adding some kind of warning could be helpful (or maybe just a note in the documentation).How to reproduce
pipx
default Python in my case).pipx install my_package --pip-args="--index-url=<private pypi index> --trusted-host=<private pypi host> --pre"
installs the last compatible version of the package for the defaultpipx
Python.pipx install my_package --pip-args="--index-url=<private pypi index> --trusted-host=<private pypi host> --pre" --python <path to appropriate Python version>
Expected behavior
Would be nice to have a warning about this or maybe a note in the docs.
The text was updated successfully, but these errors were encountered: