Python virtual environment#
Python virtual environemt is a program that aids in creating a serperate virtual environment for each project
Requiremnets#
- Python 3
- Pip
Steps#
- Installing virtual environemnt package
- Creating virtual environent
Windows - cmd/powershell
1
| py -m venv {your_env_name}
|
Linux
1
| python3 -m venv myworld
|
- Activating virtual environemt
Windows - cmd
1
| myworld\Scripts\activate.bat
|
Windows - powershell
1
| myworld\Scripts\activate.ps1
|
Linux
1
| source myworld/bin/activate
|
- Downloading required packages
1
| py -m pip install {required_package}
|