DEV Community

Kamal Mustafa
Kamal Mustafa

Posted on

Python virtualenv no activate

My workflow when starting new python project or experimenting with something:-

mkdir myproject
cd myproject
python -mvenv venv
venv/bin/pip install something
>>> import something
Enter fullscreen mode Exit fullscreen mode

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)

An Animated Guide to Node.js Event Loop

>> Check out this classic DEV post <<