Shrikant Dhayje
shriekdj

shriekdj

How to create and Activate the Virtual Environment for Python3 project.

Shrikant Dhayje's photo
Shrikant Dhayje
·Jan 19, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Table of contents

  • Create a Virtual Environment
  • Activate the Virtual Environment.

In this post I will try to share how you can start to create a project with virtual environment for Python 3.

Get An Code Editor or IDE, I will suggest you to use VS Code because it's good for beginners.

Install Python 3 Programming Language.

Create a Virtual Environment

Open Any Terminal and run below command.

python -m venv venv

Activate the Virtual Environment.

For Linux Based OS Or Mac-OS.

source venv/bin/activate

For Windows With CMD.

.\venv\Scripts\activate.bat

For Windows With Power shell.

.\venv\Scripts\activate.ps1

For Windows With Unix Like Shells For Example Git Bash CLI.

source venv/Scripts/activate

if any issue occurred while activating virtual environment on windows then go to below post.


 
Share this