How To Create Python Virtual Environments
For Linux User
Open your terminal and run the following command
Step 1: sudo apt-get update
Step 2: sudo apt install python3-pip
Step 3: sudo apt install python3-venv
Step 4: python3 -m venv venv
Step 5: source venv/bin/activate [ <-- To activate your newly create Virtual Environments]
For Windows User
Open your terminal and run the following command
Step 1: pip install virtualenv
Step 2: virtualenv venv
Step 3: venv\Script\activate [ <-- To activate your newly create Virtual Environments]
Comments
Post a Comment