Home Use Python Windows
Post
Cancel

Use Python Windows

Use pycharm in windows

steps

  1. install pyenv from here: https://github.com/pyenv-win/pyenv-win
    1
    2
    
    powershell
    Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
    
  2. add pyenv to path %USERPROFILE%.pyenv\pyenv-win\bin %USERPROFILE%.pyenv\pyenv-win\shims
  3. install poetry The better way, after setting up pyenv, is to use the following command to
1
2
pipx install poetry

The second less recommended way is to use the following command:

1
2
powershell
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
  1. install python
    1
    
    pyenv install %the version you want%
    
  2. add python to path
    1
    
    C:\Users\%user%\AppData\Roaming\Python\Scripts
    
This post is licensed under CC BY 4.0 by the author.
Contents