Python venv vs virtualenv on Windows (Beginner's Guide)

preview_player
Показать описание
Python venv vs virtualenv on Windows | Python Tutorial for Beginners

In this video, we will learn what's the difference between Python venv and virtualenv and how to set up them on Windows.

venv (Built-in with Python 3)

Step 1: Create virtual environment using venv
python -m venv myenv

Step 2: Activate the virtual environment (Command Prompt)
myenv\Scripts\activate

Step 3: Deactivate the environment
deactivate

virtualenv (Third-party tool)

Step 1: Install virtualenv globally (only once)
pip install virtualenv

Step 2: Create virtual environment using virtualenv
virtualenv myenv

Step 3: Activate the virtual environment (Command Prompt)
myenv\Scripts\activate

Step 4: Deactivate the environment
deactivate

#python #pythonprogramming #pythontutorial
Рекомендации по теме
visit shbcf.ru