Skip to content

How to switch Python version after activated Python virtual environment #507

@wyatt-wong

Description

@wyatt-wong

I have installed multiple versions of Python. How do I switch to a different python version AFTER I activated the python environement with pyenv activate my-virtual-env ?

My current approcah is simply delete the virtual environment using pyenv uninstall my-virtual-envor pyenv virtualenv-delete my-virtual-env, then switch to the latest python version and recreate the virtual environment using pyenv virtualenv venv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions