Create and Use Virtual Environments with the 'venv' module in Python3 on Linux | Python Tutorial

Veröffentlicht am: 28 Juli 2020
auf dem Kanal: Rishabh Narayan
3,083
85

Hello Guys,

My name is Rishabh Narayan and in this Python Programming language Tutorial, we will be seeing and learning how to use virtual environments on the Linux operating systems and Mac with the venv module. We are going to learn how to create them, activate them, remove them, and some other things also.

Commands used in the Video above :
1. To create a virtual env.
python3 -m venv venv_name

2.To delete virtual venv
rm -rf venv_name/

3.To create a virtual env with access to global packages installed in system
python3 -m venv venv_name --system-site-packages

4. To list the packages installed
pip3 list

5. To create a requirements.txt file
pip freeze requirements.txt
include a angled bracket after freeze, I can't type it in description here.

6. To install packages with a requirements.txt file
pip install -r requirements.txt

Follow me on my Social Media handles :

• Instagram :   / ri5h46h  
you can DM me on instagram (guaranteed replies)

• Twitter :   / explorishabh  

• Check the 'about' section for Email



Music in this Video :
Adventures by A Himitsu
   / @ahimitsu  
Creative Commons — Attribution 3.0 Unported— CC BY 3.0 http://creativecommons.org/licenses/b...
Music released by Argofox    • A Himitsu - Adventures [Royalty Free ...  
Music provided by Audio Library    • Adventures – A Himitsu (No Copyright ...  


Auf dieser Seite können Sie das Online-Video Create and Use Virtual Environments with the 'venv' module in Python3 on Linux | Python Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Rishabh Narayan 28 Juli 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,083 Mal angesehen und es wurde von 85 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!