Even before we deep dive into how to setup your own machine so that you can be able to run Python code it, you need to check where it has python on it if not then you have to install it.
Install Python
As I mentioned many machine eaither Windows or Mac might have Python installed on them.
To check if you have Python Installed on your Windows PC machine just click on Start Menu then search for Command Prompt (CMD) then paste the below command and then click enter
C:\Users\Your Name>python --version
To check if you have Python Installed on your Linux machine just search for Command Line or on Mac search for Terminal then paste the below command and then click enter
python --version
If the Python was installed you will get something like the below output:
C:\Users\Your Name>python --version
python 3.13.2
But if you don't have Python installed on your machine you can download and install it for free from their official website https://www.python.org/downloads/
After you have downloaded and installed it, check again by running the above command if it shows then you are good to go, if not then at most cases you need to add the path to the environment viriables by following these steps
- Open your local disk.
- Check if there is folder called Python, click on it, if not click on Program Files
- Find the Python Folder and Click on it, when it open you will see bin folder
- Copy the address of that folder.
- Search for "environment viriables" on start menu of your computer and click on it
- Then click on the "environment variables" button
- Then click on the "path" button and click on the "new" button and paste the address of the "bin" folder that you copied earlier and click on the "ok"
Now check you machine to see if the Python is installed on it by running the above command.
Or if you found it so difficult don't worry we got you cover, you can watch our tutorial on how to download and install it here: