Python Virtual Environments 💻 *VERY EASY*

Опубликовано: 12 Октябрь 2024
на канале: Errodringer
3,328
192

👉 What are Python Virtual Environments (virtualenv)? ✅
How are they created? 🤷♂️
In this video we will learn all the basics to understand and work with virtual Python environments.

📝 INDEX
00:00 Introduction
1:02 Create folder
1:22 Install E.V.
1:56 Activate E.V.
2:28 Deactivate E.V.
2:51 List of libraries
3:04 Install libraries in E.V.
3:50 Create requirements.txt
4:34 Install requirements.txt
4.59 Eliminate E.V.
5:37 E.V. in PyCharm
7:00 Farewell, subscription and like

If you are interested in more content like this, do not hesitate to visit my channel:    / @errodringer  

Terminal commands for Copy-Paste (you are welcome):
Create folder:
mkdir [path]

Install virtual environment win and other OS:
python -m venv [path]

Activate venv:
Win:
Scripts\activate.bat
Other OS:
source bin/activate

Disable venv All OS:
deactivate

Access to python:
python

See installed libraries:
pip list

Install libraries:
pip install [library]

Uninstall libraries:
pip uninstall [library]

Save requirements.txt:
pip freeze (greater than) requirements.txt

Install from requirements:
pip install -r requirements.txt

Delete virtual environment:
Win:
rmdir [path\ev] /s
Mac, linux:
rm -rf route/to/environment/virtual

#Python
#venv
#virtualenv