Skip to content

Instantly share code, notes, and snippets.

@nohehf
Last active June 15, 2021 12:58
Show Gist options
  • Save nohehf/219e583668d0ded673da2f7dee9e06d9 to your computer and use it in GitHub Desktop.
Save nohehf/219e583668d0ded673da2f7dee9e06d9 to your computer and use it in GitHub Desktop.
How to install pyenv-win

Here is how I installed pyenv-win:

1 - Uninstall Python (your current version when you type the command python -V)

2 - Install pyenv-win and add it to the PATH (here are some optional steps to install it via chocolatey, which adds it directly to the PATH)

2.2 - Install chocolatey

2.3 - In an administrator powershell run: choco install pyenv-win

3 - Start menu (windows key) -> Manage application execution aliases -> disable aliases related to python here it's in french but it should be similar

4 - install the desired python version via pyenv: pyenv install DESIRED VERSION NUMBER

5- run pyenv rehash

6 - set it as global pyenv global DESIRED VERSION NUMBER

7 - you sould see the desired version by running the command python -V

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