25 Jul 2025HTML
Creating Python Virtual Environments on Ubuntu with venv
To create a Python virtual environment using venv on Ubuntu:
I have tried in
Ubuntu 20.04
,Ubuntu 22.04
&Manjaro
but I think it will work in almost all linux based systems
- Install virtualenv:
pip3 install virtualenv
- Create the virtual environment:
python3 -m venv .venv
(where ".myenvname" is the desired name for the environment) Reference: https://docs.python.org/3/library/venv.html - Activate the virtual environment:
source .venv/bin/activate
You may also like
Building a URL Shortener Service with Python and Flask
This tutorial guides you through the process of building a URL short...
Continue readingCreating a Python Script for Personal Journaling and Emotion Analysis
In this digital age, harnessing the power of Python for personal jou...
Continue readingDeploying Python Applications: Strategies and Considerations for Production
Deploying Python applications in a production environment requires c...
Continue reading