Overview
You can install Python in two main ways:
-
Standard Python (recommended for most students)
-
Anaconda (useful if you want a bundled data-science environment)
Both options work with Cursor. Choose one and follow the steps below.
Option A: Standard Python (recommended)
Windows
-
Download Python from the official site: https://www.python.org/downloads/
-
Run the installer and check Add python.exe to PATH.
-
Choose Install Now.
-
Open Command Prompt and verify:
-
python --version -
pip --version
-
macOS
-
Download Python from the official site: https://www.python.org/downloads/
-
Run the installer package.
-
Open Terminal and verify:
-
python3 --version -
pip3 --version
-
Linux (Ubuntu/Debian)
-
In Terminal, run:
-
sudo apt update -
sudo apt install python3 python3-pip
-
-
Verify:
-
python3 --version -
pip3 --version
-
Option B: Anaconda (bundled data tools)
-
Download Anaconda: https://www.anaconda.com/download
-
Install using the default settings.
-
Open Anaconda Prompt (Windows) or Terminal (macOS/Linux) and verify:
-
python --version -
conda --version
-
Install Cursor
-
Download Cursor: https://cursor.com/download
-
Install and launch the app.
-
Sign in if prompted, then open your project folder.
Configure Cursor to work with Python
-
In Cursor, open the integrated terminal (View → Terminal).
-
Create a virtual environment:
-
macOS/Linux:
python3 -m venv .venv -
Windows:
python -m venv .venv
-
-
Activate it:
-
macOS/Linux:
source .venv/bin/activate -
Windows (PowerShell):
.venv\\Scripts\\Activate.ps1
-
-
Cursor should detect the environment. If it does not, reopen the folder.
Verification steps
-
Create a file named
hello.pywith:print(\"Hello from Python\")
-
Run it in the terminal:
-
macOS/Linux:
python3 hello.py -
Windows:
python hello.pyIf you see the message printed, Python and Cursor are working correctly.
-
References
-
Python downloads: https://www.python.org/downloads/
-
Anaconda downloads: https://www.anaconda.com/download
-
Cursor docs: https://cursor.com/docs