Skip to main content
  1. Notes/

Python

Table of Contents
pip install --editable .

If you install your local project with -e option (pip install -e mypackage) and use it in your environment (e.g. within your other project like from mypackage import custom_function) then, when you make any change to your custom_function, you will able to use this updated version without re-installing it again (with pip install or python setup.py), which would happen in case of omitting -e flag. – Nerxis

Virtual environments #

# Create a virtual environment
python -m venv .venv

# Activate the virtual environment
source .venv/bin/activate