Installing PyEnv
PyEnv is a tool that allows you to easily switch between multiple versions of Python.
Install Git for Windows: PyEnv requires Git. Download and install Git from git-scm.com.
Install PyEnv for Windows:
Open PowerShell as an administrator and run the following command to install PyEnv:
Invoke-WebRequest -UseBasicParsing -Uri https://pyenv-win.github.io/pyenv-win/install-pyenv-win.ps1 | Invoke-Expression
Update Environment Variables: Add the following paths to your system environment variables:
C:\Users\<Your-Username>\.pyenv\pyenv-win\bin
C:\Users\<Your-Username>\.pyenv\pyenv-win\shims
Restart PowerShell or Command Prompt:
Verify PyEnv Installation: Open PowerShell or Command Prompt and type:
pyenv --version
How to setup Python, PyEnv & Poetry on Windows
Setting up a robust Python development environment on Windows involves installing Python itself, managing multiple versions with PyEnv, and handling dependencies and project environments with Poetry. This guide will walk you through each step to get your system ready for efficient and organized Python development.
Prerequisites
- Basic understanding of command-line operations.
- Windows operating system (Windows 10 or later is recommended).
Contact Us