How to install Python
7-Day Challenge
Land Your First Data Science Job
A proven roadmap to prepare for $75K+ entry-level data roles. Perfect for Data Scientist ready to level up their career.
Build portfolios that hiring managers love
Master the Python and SQL essentials to be industry-ready
Practice with real interview questions from tech companies
Access to the $100k/y Data Scientist Cheatsheet
- Test if Python is already installed on your system
- Download Python if it is not already installed on your system
- Check if it's correctly added to the PATH or add it so that you can call it directly from the terminal.
How to test if Python is already installed on your system
Open up a terminal
- Mac : Open up the spotlight and search for terminal
- Windows : W + R and write cmd
- Linux : Ctrl + Alt + T for ubuntu
Check the version if python is installed
python3 --version
python --version
If you end up with an error on both commands then python might not be installed on your system.
Install Python
Download Python & Install Python
Download Python
The official home of the Python Programming Language
![](https://www.python.org/static/opengraph-icon-200x200.png)
Check the version if python is installed
python3 --version
If you still end up with an error then you will need to tell your computer where your Python is installed by editing the PATH.
Change the PATH on your computer
On MAC or LINUX
export PATH="the/path/where/your/python/executable/is:$PATH"
On windows
For windows it's a bit more complex.
How to set python path in windows 7
I try to set path of python in windows 7, but I can not do that. I go to: My Computer -> Properties -> Advanced > Environment Variables but I don’t know what to do now.please help me
![](https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded)
Here you are! You now know how to install Python
7-Day Challenge
Land Your First Data Science Job
A proven roadmap to prepare for $75K+ entry-level data roles. Perfect for Data Scientist ready to level up their career.
Build portfolios that hiring managers love
Master the Python and SQL essentials to be industry-ready
Practice with real interview questions from tech companies
Access to the $100k/y Data Scientist Cheatsheet
Related Articles
Continue your learning journey with these related topics
Getting Started
3 min readHow long does it take to learn Python for Data Science in 2023
Learn how long it takes to learn Python for Data Science in 2021.
What does it take to be a Data Scientist in 2021?
4/18/2023Read More
Fundamentals
1 min readHow to add logic in Python
Learn how to add logic to your Python code with control statements. Use if, else, and elif to make decisions based on conditions, and for and while loops to repeat actions. Master these programming concepts to write efficient and flexible code in Python.
4/11/2023Read More
Matplotlib
2 min readHow to make AMAZING graphs in Python that everyone will understand
Data visualization helps to turn complex data into actionable insights. To make effective and self-explanatory graphs, keep it simple, write labels and legends according to your reader, and choose the right library. Clear data visualization is a valuable tool for data analysis and communication.
4/7/2023Read More
Free Newsletter
Master Data Science in Days, Not Months 🚀
Skip the theoretical rabbit holes. Get practical data science skills delivered in bite-sized lessons – Approach used by real data scientist. Not bookworms. 📚
Weekly simple and practical lessons
Access to ready to use code examples
Skip the math, focus on results
Learn while drinking your coffee