How to organize your Python Dev Enviroment 🐍

Beatriz Uezu
@beatrizuezu

Who am I?

Beatriz Uezu

  • Brazilian πŸ‡§πŸ‡·
  • Backend Engineer and Specialized in Software Engineering πŸ’»οΈ
  • Work out πŸ’ͺ, running πŸƒΒ and photography πŸ“·οΈ
  • twitter/medium/instagram/linkedin/github: @beatrizuezu

Beatriz Uezu | @beatrizuezu

Agenda

  1. Python Version Management
  2. Virtual Environment
  3. Dependency Management

Beatriz Uezu | @beatrizuezu

Python Version Management

It allows to install and switch between python versions

Beatriz Uezu | @beatrizuezu

Pyenv

Python Version Management

Beatriz Uezu | @beatrizuezu

Pyenv

Python Version Management

Beatriz Uezu | @beatrizuezu

Pyenv

Python Version Management

Pyenv

Setting a version

> pyenv local 3.10.12

Locally

> pyenv global 3.10.12

Globally

Beatriz Uezu | @beatrizuezu

Virtual Environment

It's a way to isolate your project code

Beatriz Uezu | @beatrizuezu

Virtual Environment

Beatriz Uezu | @beatrizuezu

Creating

Using venv

Β 

It's a module included in Python

Β 

Example

Β 

.venv is the name of your virtual environment, be aware we're creating a hidden folder here!

python -m venv <env-name>
python -m venv .venv

How to organize your Python Dev Enviroment 🐍

By Beatriz Uezu

How to organize your Python Dev Enviroment 🐍

  • 46