Skip to content

cooperate with pyenv, when The pyenv is installed, and the python version required in Pipfile is not installed, it will automatically trigger pyenv to download and install the latest Python distro satisfy the requirement. #6147

@evan0greenup

Description

@evan0greenup

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues and the PEEP list before posting! We may close your issue if it is very similar to one of them. Please be considerate and follow the PEEP process, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Is your feature request related to a problem? Please describe.

Currently, when the required Python version is not satisfied, it will fallback and use the default Python version which is available in the current system.

Describe the solution you'd like

If pyenv is installed, it will automatically invoke pyenv and download/install the latest version allowed by the requirement from Pipfile.

Describe alternatives you've considered

If this feature is overpowered, it can print a suggestion command like pyenv install <x.x.x> and user can copy and paste the command to install the expected python version.

It will not using default python version, it will raise an error and exit if there is now allowed python version available. Except, user pass certain flag to explicitly let the pipenv use the default python version to override the wanted python version.

Additional context

Add any other context or screenshots about the feature request here. It may be a good idea to mention that platform and Python version you are on.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Contributor CandidateThe issue has been identified/triaged and contributions are welcomed/encouraged.Type: Vendored DependenciesThis issue affects vendored dependencies within pipenv.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions