Andreas Vöst
26 days
Claus-Theodor Riegg
4 years
Andreas Vöst
2 months
Andreas Vöst
2 months
Kim Klotz
3 months
Claus-Theodor Riegg
8 years
Andreas Vöst
5 months
Andreas Vöst
7 months
Claus-Theodor Riegg
8 years
Marc Dierig
9 months
Claus-Theodor Riegg
7 years

Do not use Python virtualenv anymore

Posted . Visible to the public.

For a long time virtualenv Show archive.org snapshot was used to create isolated Python environments. This is not required anymore.

Since Python 3.3 a native venv module Show archive.org snapshot is shipped.

direnv setup

A fast way to use this is the Python venv support Show archive.org snapshot from direnv Show archive.org snapshot :

echo "layout python python3" >> .envrc
echo "cowsay" >> requirements.txt

direnv allow
pip install -r requirements.txt

which cowsay
${PWD}/.direnv/python-3.10/bin/cowsay
Andreas Vöst
Last edit
Andreas Vöst
License
Source code in this card is licensed under the MIT License.