Skip to main content

Command Palette

Search for a command to run...

Creating a virtual environment with bash

Updated
1 min read
Creating a virtual environment with bash
S

I am a Software engineer with the mindset of providing cloud-based solutions with event-driven and test-driven architecture to real-world problems. I build and maintain backend systems with the python framework Django and provide seamless relationships between development and operations processes.

Creating a virtual environment in bash may seem to be a difficult task but it actually isn't. You can do that with just one command.

I will walk you through creating a virtual environment in bash and activating it. To create a virtual environment in with bash all you have to do is write this command:

virtualenv venv

Screenshot (80).png

Where venv is the virtual environment name. Now to activate it all you have to do is:

source venv/Scripts/activate

Screenshot (86).png If you the virtual environment is active it should show at the top of your file path like the one above.

To deactivate it all you have to do is enter deactivate

Screenshot (85).png

Thank you for reading.