filmov
tv
Try this way to create Python Virtual Environment in folder and on system | Step by Step DEMO
![preview_player](https://i.ytimg.com/vi/oN0cISyzWe8/maxresdefault.jpg)
Показать описание
Steps to create a Python virtual environment in a Project Folder
00:00 Introduction
00:35 What is a Virtual Environment
04:26 Benefits of a virtual environment
04:52 Step 1 - Python must be installed on the system python --version pip --version
06:09 Step 2 - Create a new folder, Open cmd prompt or terminal and goto the location of folder
08:03 Step 3 - Create a virtual environment by running the command python -m venv myenv
This will create a new directory "myenv" in project folder, which will contain the virtual environment
09:58 Step 4 - Activate the virtual environment by running the command myenv/bin/activate (Linux/Mac)
myenv\Scripts\activate (Windows)
deactivate (disconnect virtual env)
12:27 Step 5 - Once the virtual environment is activated, it’s name will be visible on the terminal (myenv)
12:49 Step 6 - We can install the packages in the project by running the command pip install package_name
It's a good practice to create a virtual environment for each project to keep the dependencies isolated and avoid conflicts
Steps to create a Python virtual environment on the system
14:25 Step 1 - Run commands:
pip install virtualenv
pip install virtualenvwrapper-win
16:36 Step 2 - On cmd goto folder where you want to create project
16:56 Step 3 - Create a virtual environment using command mkvirtualenv <environment-name>
lsvirtualenv (see list of virtual env)
workon myenv (connect and activate)
deactivate (disconnect virtual env)
18:49 Step 4 - To bind our virtualenv with current working directory
setprojectdir .
21:50 Can check env and python details using - which python or where python
#Python #VirtualEnv
▬▬▬▬▬▬▬
Every Like & Subscription gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
▬▬▬▬▬▬▬▬ USEFUL LINKS ▬▬▬▬▬▬▬▬▬
▬▬ CI | CD | DEVOPS ▬▬
▬▬ UI TESTING ▬▬
▬▬ API TESTING ▬▬
▬▬ MOBILE TESTING ▬▬
▬▬ PERFORMANCE TESTING ▬▬
▬▬ SOURCE CODE MANAGEMENT ▬▬
▬▬ IDE ▬▬
▬▬ PROGRAMMING ▬▬
▬▬ BUILD TOOLS ▬▬
▬▬ CLOUD SERVICES ▬▬
▬▬ DATA FORMATS ▬▬
▬▬ OTHERS ▬▬
—
00:00 Introduction
00:35 What is a Virtual Environment
04:26 Benefits of a virtual environment
04:52 Step 1 - Python must be installed on the system python --version pip --version
06:09 Step 2 - Create a new folder, Open cmd prompt or terminal and goto the location of folder
08:03 Step 3 - Create a virtual environment by running the command python -m venv myenv
This will create a new directory "myenv" in project folder, which will contain the virtual environment
09:58 Step 4 - Activate the virtual environment by running the command myenv/bin/activate (Linux/Mac)
myenv\Scripts\activate (Windows)
deactivate (disconnect virtual env)
12:27 Step 5 - Once the virtual environment is activated, it’s name will be visible on the terminal (myenv)
12:49 Step 6 - We can install the packages in the project by running the command pip install package_name
It's a good practice to create a virtual environment for each project to keep the dependencies isolated and avoid conflicts
Steps to create a Python virtual environment on the system
14:25 Step 1 - Run commands:
pip install virtualenv
pip install virtualenvwrapper-win
16:36 Step 2 - On cmd goto folder where you want to create project
16:56 Step 3 - Create a virtual environment using command mkvirtualenv <environment-name>
lsvirtualenv (see list of virtual env)
workon myenv (connect and activate)
deactivate (disconnect virtual env)
18:49 Step 4 - To bind our virtualenv with current working directory
setprojectdir .
21:50 Can check env and python details using - which python or where python
#Python #VirtualEnv
▬▬▬▬▬▬▬
Every Like & Subscription gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
▬▬▬▬▬▬▬▬ USEFUL LINKS ▬▬▬▬▬▬▬▬▬
▬▬ CI | CD | DEVOPS ▬▬
▬▬ UI TESTING ▬▬
▬▬ API TESTING ▬▬
▬▬ MOBILE TESTING ▬▬
▬▬ PERFORMANCE TESTING ▬▬
▬▬ SOURCE CODE MANAGEMENT ▬▬
▬▬ IDE ▬▬
▬▬ PROGRAMMING ▬▬
▬▬ BUILD TOOLS ▬▬
▬▬ CLOUD SERVICES ▬▬
▬▬ DATA FORMATS ▬▬
▬▬ OTHERS ▬▬
—
Комментарии