Artificial Intelligence Blogs Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
Trupti81
Explorer
0 Likes
100

Introduction:

A Python virtual environment is a local directory that maintains project dependencies distinct from the rest of the system. It prevents conflicts of version and provides a uniform development in various presuppositions. This is needed to create clean Python applications that are maintainable and scalable.

 

Open Visual studio and create a folder { To learn on How to step up Visual Studio for python programming , please refer my blog https://community.sap.com/t5/artificial-intelligence-blogs-posts/ai-steps-to-setup-python-programmin... }

Trupti81_0-1777780358294.png

 

 

Create Virtual environment using python -m venv {environment name}

 

Trupti81_1-1777780358294.png

 

 

Create folder for database , ui, and text file for requirements/dependencies

Trupti81_2-1777780358294.png

 

 

Add dependencies in requirement file

Trupti81_3-1777780358294.png

 

 

Install dependencies using command  

pip install -r {requirement text file name}

 

Trupti81_4-1777780358294.png

 

 

Activate Virtual environment

 

Trupti81_5-1777780358294.png

 

 

Summary 

A python virtual environment helps to isolate project dependencies and prevents conflicts with the rest of the system. It provides uniform, hygienic and controllable growth in various setups.

 

##If you found this blog helpful, please consider giving it a lik