Creating Python Virtual Environment in Folder and on System - Step by Step Demo
Offered By: Automation Step by Step via YouTube
Course Description
Overview
Syllabus
Introduction
What is a Virtual Environment
Benefits of a virtual environment
Step 1 - Python must be installed on the system python --version pip --version
Step 2 - Create a new folder, Open cmd prompt or terminal and goto the location of folder
Step 3 - Create a virtual environment by running the command python -m venv myenv
Step 4 - Activate the virtual environment by running the command myenv/bin/activate Linux/Mac
Step 5 - Once the virtual environment is activated, it’s name will be visible on the terminal myenv
Step 6 - We can install the packages in the project by running the command pip install package_name
Optional - We can use command pip freeze > requirements.txt to save all the dependencies in a single file
Step 1 - Run commands:
Step 2 - On cmd goto folder where you want to create project
Step 3 - Create a virtual environment using command mkvirtualenv <environment-name>
Step 4 - To bind our virtualenv with current working directory
Can check env and python details using - which python or where python
Taught by
Automation Step by Step
Related Courses
Introduction to Cloud Foundry and Cloud Native Software ArchitectureLinux Foundation via edX The Unix Workbench
Johns Hopkins University via Coursera Введение в Linux
Bioinformatics Institute via Stepik Linux Basics: The Command Line Interface
Dartmouth College via edX Sistemas operativos y tú: Convertirse en un usuario avanzado
Crece con Google via Coursera