PC setup
Install Python
1. Go to python.org and download the latest Python installer for Windows (e.g., Python 3.13 as
of early 2025).
2. After downloading the installer, run it by opening it (click the box with the arrow).
3. Follow the instructions in the installer. During installation, check the option "Add python.exe to
PATH" if prompted.
Check installation
1. Open the Command Prompt (Win + R, type cmd, press Enter).
2. Once in the Command Prompt, type 'python --version'.
You should see something like 'Python 3.13.2' (you may have a more recent version).
Install Necessary Packages
1. Next, install the libraries you use, like pandas, matplotlib, and scikit-learn.
In the terminal type:
'pip install pandas matplotlib scikit-learn'
This command installs:
● pandas: Handles data manipulation.
● matplotlib: Creates plots.
● scikit-learn: Supports machine learning (including Linear models).
2. After the installation process is complete, you can check if you have installed each package
with 'pip list'
Install VS Code
Now we need a code editor. VS Code is a popular option.
1. Download VS Code from 'code.visualstudio.com'.
2. Open the VS Code zip file by double clicking.
3. Follow the installation instructions. Then Launch VS Code.
Download extensions
1. Once in VS Code, click on the extensions icon (on the left sidebar).
2. Install the following extensions:
● Python (by Microsoft): Adds Python support.
● Jupyter Extension Pack (by Microsoft): Enables notebook functionality.
Just search for each, click "Install," and you’re set.
Set Up Your Project and Interpreter
1. Open up your project. In VS Code, use 'File > Open Folder…' to open the folder where your
notebooks are. Choose the folder.
2. Now the project should be open in VS Code. Open the 'ipynb' file.
3. When you run the code for the first time, you might need to select the Python interpreter.
Select the python you downloaded earlier.
4. You can change your Python interpreter as follows.
● Press Shift+Ctrl+P to open the Command Palette.
● Type "Python: Select Interpreter" and select the Python interpreter.
New Interactive Python Notebook
1. Select 'File > New File'.
2. Select Jupyter Notebook.
3. Click 'File > Save As..' to rename and save this notebook.
Verify Everything Works
To make sure your setup matches works, try these quick tests in your notebook:
For pandas:
import pandas as pd
print(pd.__version__)
For matplotlib:
import matplotlib.pyplot as plt
plt.plot([1,2,3], [1,2,1])
plt.show()
For scikit-learn:
from sklearn.datasets import load_iris
print(load_iris().data.shape
If these run without errors and show outputs (e.g., a plot or data shape), you’re good to go!