How to create python-venv and start a project on GitHub.
Everything about python-venv in detail.
Check out the full explaination on YouTube
- We will be using
cmdcommand prompt to create our venv. - Lets understand with an example.
- Open
cmdget 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
testinside themyenvsfolderpython -m venv test - To view the created venv will use
dircmd to view the folder in the dir - our python venv is created
- We will pass the complete address of our venv bat file
d:\myenvs\test\scripts\activate.bat
- Once our venv is activated we can install all our packages in it.
For example lets install
pandaspip install pandas
- To deactivate the running venv
deactivate