Follow us on: facebook twitter linkedin

PROGRAMING

Virtual environment in Python

Post by : John deo
Post date: 2024-05-10 13:09:51

Read time : 5 minute
Total views: 319 times
hero-img

What is virtual environment?

 

Virtual environment in Python is a set of self-contained directory that contain a python interpreter and its associate libraries. Its allow u to create isolated environment for your python project. Where u can separately manage your python project without interfering from system-wide python environment.

 

Command for virtual environment

  1.  Create python -m venv your_enviroment_name.
  2.  Activate your_enviroment_nameScriptsactivate.

Each time u dont need create virtual environment. Once create that then activate before project start. For Django, Flask and Bottle before start make sure u activate virtual environment.

Share by:

Keep exploring

Read what excites, achieves and moves us Read what excites, achieves and moves us