Skip to content

Explaining how to create virtual environment in python in detail and starting a project on git hub. Check out the tutorial on YouTube link in About section!

Notifications You must be signed in to change notification settings

iamrajharshit/newPROJECT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

new_project

How to create python-venv and start a project on GitHub.
Everything about python-venv in detail.
Check out the full explaination on YouTube

Python Virtual Environment

How to Create venv

  • We will be using cmd command prompt to create our venv.
  • Lets understand with an example.

    For example:

  • Open cmd get into desired dir.
  • Lets create a folder in d drive which will contain all our python venvs
    d:\md myenvs
    
  • Now, we have created our env folder which will contain all our venvs, moving on, will get into the folder
    d:\cd myenvs
    
  • Now, will create our python venv test inside the myenvs folder
    python -m venv test
    
  • To view the created venv will use dir cmd to view the folder in the dir
  • our python venv is created

How to activate venv

  • We will pass the complete address of our venv bat file
    d:\myenvs\test\scripts\activate.bat
    

How to pip inside the venv

  • Once our venv is activated we can install all our packages in it. For example lets install pandas
    pip install pandas
    

To deactivate venv

  • To deactivate the running venv
    deactivate
    

About

Explaining how to create virtual environment in python in detail and starting a project on git hub. Check out the tutorial on YouTube link in About section!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages