OPERATING SYSTEMSOS Linux

How to Setup Python3-Virtualenv on Ubuntu 22.04 | Setup Python3-Venv on Ubuntu 22.04

How to Setup Python3-Virtualenv on Ubuntu 22.04 | Setup Python3-Venv on Ubuntu 22.04 | Setup Python3-Venv on Ubuntu 22.04 | Python virtual environment is a self-contained directory tree that includes a Python installation and number of additional packages. The Virtualenv module provides support for creating lightweight “virtual environments” with their own site directories, optionally isolated from system site directories. Each virtual environment has its own Python binary (which matches the version of the binary that was used to create this environment) and can have its own independent set of installed Python packages in its site directories. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.

Terminal commands:
1. sudo apt install python3-venv
2. python3 -m venv techsolutionz-env
3. source techsolutionz-env/bin/activate
4. pip3 install requests
5. python -c “import requests”
6. nano youtube.py

source

ubuntu

9 thoughts on “How to Setup Python3-Virtualenv on Ubuntu 22.04 | Setup Python3-Venv on Ubuntu 22.04

Comments are closed.