Skip to content

[IMPROVEMENT] Choose python install #3313

Closed

Description

@GiuseppeIII

Please confirm these before moving forward.

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This improvement refers to an existing feature. If you want to suggest a new feature, please use this template.
  • This improvement is not a bug. If you want to report a bug, please use this template.

Describe the improvement

Would there be a way to choose what python install you want to use for pip (or have it based on the PATH).

Describe how this improvement could help users

I am using pyenv to manage python versions, and so ideally would want UniGetUI to pull from the global python version set by pyenv and not the windows store python set by the App execution alias. Thanks for your consideration!

Activity

  1. added
    enhancement
    on Feb 17, 2025
  2. mrixner commented on Mar 4, 2025

    @mrixner
    Contributor

    I would see an implementation for this in one of three ways:

    1. Each Python installation is it's own source, much like vcpkg handles seperate triplets (which would also need the custom input thing like vcpkg, with a default version in the meantime). I think this is the best option for the current Pip manager, unless you would like [FEATURE REQUEST] Custom mirror sources for pip and npm repositories #1215.
    2. Elsewise, it could just be an option in the package manager settings to pick the version you want to use, however that's only a great option for people who have auxiliary versions and don't use all their versions (which, admittedly, is rare).
    3. If admin-locked settings are implemented, then the feature proposed by [FEATURE REQUEST] Specify package manager location/path #1855 could be used to select the python / pip executable.

    As a side note - is it possible to change the source of a package imported from a bundle? If not, perhaps that might be a feature to add to allow vcpkg (and Pip, as proposed here) packages to be correctly installed to the system.

  3. marticliment commented on Mar 5, 2025

    @marticliment
    Collaborator

    As a side note - is it possible to change the source of a package imported from a bundle? If not, perhaps that might be a feature to add to allow vcpkg (and Pip, as proposed here) packages to be correctly installed to the system.

    No (at least currently), because same packages are not necessarily expected to be available from different sources...

  4. marticliment commented on Mar 5, 2025

    @marticliment
    Collaborator

    Perhaps I could introduce some "Destination/PackageType" setting, that properly handles where a package is installed (python install/triplet) rather than the source (from where the package is pulled.)

  5. mrixner commented on Mar 6, 2025

    @mrixner
    Contributor

    I think that's a great idea, and makes everything more clear to the user.

  6. nuttiplutt commented on Mar 8, 2025

    @nuttiplutt

    I have same problem, UnigetUI can't find pip. I had originally python 3.13 and that worked without problem. Then I installed 3.11 without having it in PATH, just to use in dev and now UnigetUI just thinks that the python version is the one from the Microsoft Store. I would love to have a way to direct it to the right python and pip.

    EDIT: I found that a solution to temporarily close UnigetUI, rename the two python files in %APPDATA%\Local\Microsoft\WindowsApps\ , then open UniGetUI and it found the right python and pip according to system PATH again. I then renamed the two python files back to their original names, python.exe and python3.exe and now UnigetUI still points to the correct pip. I haven't had time to restart my machine, so I hope this solution survives a reboot! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementpipready-to-go

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions