Python Environment Setup: How to Install Python on Your Computer

Article by: Manish Methani

Last Updated: October 8, 2021 at 8:04am IST
2 min 6 sec read

Step 1: Check Your Current Python Version Before installing Python on your computer, it's a good idea to check whether Python is already installed and what version it is. To do this, open your terminal or command prompt and type:

python --version

This will return the current version of Python installed on your system.

Step 2: Install Python There are several ways to install Python, but we recommend using a package manager such as Homebrew (for Mac users) or Chocolatey (for Windows users).

For Mac users, open your terminal and type:

brew install python

For Windows users, open your command prompt and type:

choco install python

Alternatively, you can download and install Python directly from the official website (

Step 3: Set Up a Virtual Environment Setting up a virtual environment allows you to manage multiple Python projects with different dependencies without them conflicting with each other. To set up a virtual environment, follow these steps:

  1. Install virtualenv using pip:
pip install virtualenv

       2. Create a new virtual environment:

virtualenv myenv

This will create a new virtual environment named "myenv".

       3. Activate the virtual environment:

source myenv/bin/activate

For Windows users, the command is:


      4. Install dependencies for your project using pip:

pip install package_name

      5. Deactivate the virtual environment when you're done:


Conclusion: In this tutorial, you learned how to install Python on your computer and set up the Python environment. We showed you how to check your current Python version, install Python using a package manager or official website, and set up a virtual environment to manage different Python projects. With these steps, you're ready to start programming with Python!


Simplified Coding for Beginners.

Download the Codzify
Mobile App

Mobile App Development, Web App Development, Programming Languages, Latest Tech News & lot more.

Codzify Mobile App

A self-paced learning Courses Created by an Engineer
For Engineers.


The Complete Angular Course

Instructor: Manish Methani

Explore Curriculum

C Programming for Absolute Beginners

Instructor: Manish Methani

Start Watching

Flutter Mobile App Development Course

Instructor: Manish Methani

Explore Curriculum

Learn HTML, CSS & Bootstrap

Instructor: Manish Methani

Start Watching

Test your skills with these expert-led curated
Mock Tests.

C Programming Test

Test your C Programming skills with this comprehensive mock test on C Programming.

Take Test

Flutter Test

Solve most asked Interview Questions on Flutter and Test your foundational skills in flutter.

Take Test

GATE(CSE) Operating Systems

Solve most asked GATE Questions in Operating Systems and test your Gate Score.

Take Test


This is a mock test designed to help you assess your knowledge and skills in HTML and CSS.

Take Test

(GATE CSE) Data Structures & Algorithms Test

Solve most asked GATE Questions in Data Structures and Algorithms and test your Gate Score.

Take Test
include_once 'codzify-footer.php'; ?>