Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 601 Bytes

python_dependancies.md

File metadata and controls

38 lines (31 loc) · 601 Bytes

Best way to handle python dependancies

Pipx

Install pipx

python3 -m pip install pipx 
python3 -m pipx ensurepath

Install tools/packages with pipx

pipx install package

Virtual env

Install

sudo apt install python3.10-venv

Create virtual env

mkdir my_awesome_project
cd my_awesome_project
python3 -m venv .my_awesome_project_venv

Use virtual env

source .my_awesome_project_venv/bin/activate

Install python stuff

python3 -m pip install -r .\requirements.txt