My workflow when starting new python project or experimenting with something:-
mkdir myproject
cd myproject
python -mvenv venv
venv/bin/pip install something
venv/bin/python
>>> import something
Look, there's no need to do something like source venv/bin/activate
to make use of your virtual environment.
Of course this is just for quick experimentation. For a real project we're using poetry. And here's labzero our starter project for django.
Top comments (0)