Marc Dierig
11 months
Stefan Langenmaier
1 year
Andreas Vöst
1 month
Claus-Theodor Riegg
4 years
Andreas Vöst
3 months
Andreas Vöst
3 months
Kim Klotz
4 months
Claus-Theodor Riegg
8 years
Andreas Vöst
6 months
Andreas Vöst
8 months

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.