Skip to content

pipenv does not update the virtual environment when the python version is updated in the Pipfile #6141

@Semnodime

Description

@Semnodime

Issue description

pipenv install --python 3.12

Expected result

tail Pipfile -n 2
[requires]
python_version = "3.12"
pipenv run python -V
Python 3.12.2

Actual result

tail Pipfile -n 2
[requires]
python_version = "3.12"
pipenv run python -V
Python 3.10.12

Steps to replicate

pipenv install --python 3.12
mv Pipfile Pipfile.bak
pipenv --rm
pipenv install --python 3.10
mv Pipfile.bak Pipfile
pipenv install --python 3.12
pipenv run python -V

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contributor CandidateThe issue has been identified/triaged and contributions are welcomed/encouraged.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions