Try this way to create Python Virtual Environment in folder and on system, Step by Step DEMO
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) myenvScriptsactivate (Windows) deactivate (disconnect virtual env) 12:27 Step 5 Once the virtual environment is activated, its name will b. .., RaghavPal, howtocreatepythonvirtualenvironment, whatisavirtualenvironmentinpython, whataretheadvantagesforvirtualenvironment, howtoconnectafoldertoavirtualenvironment 20230209 oN0cISyzWe8
|
|