DEV Community

Shaikh Al Amin
Shaikh Al Amin

Posted on

Python3 venev setup in ubuntu

To install pip

sudo apt-get install -y python3-pip
Enter fullscreen mode Exit fullscreen mode

To install python3 virtual env

sudo apt install python3-venv
Enter fullscreen mode Exit fullscreen mode

To create a virtual env run the below command

python3.8 -m venv venv
Enter fullscreen mode Exit fullscreen mode

To activate virtual env run the below command

source venv/bin/activate
Enter fullscreen mode Exit fullscreen mode

To check the installed Python package inside the virtual env run the below command

pip list
Enter fullscreen mode Exit fullscreen mode

Top comments (0)