Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.
Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.
For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.
It makes sense to start learning by reading and watching videos about fundamentals and how things work.
Data Science and Machine Learning - 16 wks
Full-Stack Software Developer - 16w
Search from all Lessons
Curated list of small interactive and incremental exercises you can take to get better at any coding skill.
Curated section of projects to build while learning with simple instructions, videos, solutions, and more.
Guides on different topics related to the technologies that we teach in our courses
Python is one of the most used programming languages in the world, this language allows you to create back-end applications with frameworks such as django or FastAPI, create Machine learning algorithms with Tensorflow or even create user interfaces on the front-end with technologies such as ReactPy.
This language is undoubtedly one of the most used in the programming world because it is quite versatile and easy to learn. In this article, we will see how to install or update this language in different operating systems such as Windows, MacOS, and Linux.
There are two ways to install Python on your Windows computer, the first is to install the Ubuntu operating system and then with the help of this install Python, the second way is to install Python in the traditional way from the official Python page.
To install Python with Ubuntu operating system first we need to activate WSL (Windows subsystem for Linux) on your computer, this subsystem allows you to run Linux operating system on your Windows computer.
If you watched the above video completely you can skip to the last step.
xand then select Windows PowerShell or Terminal (administrator) this will open the Powershell terminal then in this terminal run the following command to enable the Linux subsystem in Windows:
Next, open the microsoft store (Microsoft Store) and download the latest version of Ubuntu, this may take a few minutes, once the installation is finished it will open the Ubuntu terminal and ask you to create a username and password, enter your details and save your password because you will need it later to install Python.
Once you have the Ubuntu operating system installed on your computer, open the Ubuntu terminal and run the following command to install or update Python.
When executing this command you will be prompted for the password you entered when installing Ubuntu, so enter your password and press
Enter. This will start the Python 3 download.
To install Python in the traditional way go to the python official website and then go to the Downloads section, this page will detect your default operating system and will offer you the latest stable version of Python available for download.
Then run the downloaded file and it is important that you select the two options:
By adding Python 3.11 to the PATH variable, you will be able to run Python commands and scripts from any location on your operating system without having to provide the full path to the Python executable.
When you run this command you should see the latest version of Python available, for example:
Python 3.11.4is the latest version available at the time of writing this article, 08/07/2023.
The MacOS operating system usually already has a version of Python installed by default, if you open the console and check your installed Python version with the
python --version command it should look something like this:
Python 2.7.1. Even if you already have a version of Python installed I recommend that you install the latest version of Python available so you will have access to the latest features of this language.
To install Python go to the official python website and click on the (Download Python) button, this page will detect your operating system by default and will offer you the latest version of python available for your operating system.
Next, run the file you just downloaded, click the Continue button on all windows and then the Install button, it will probably ask you for your password, after typing your password press
enter and it will start downloading Python to your computer.
Finally, verify that you downloaded the latest version of Python available for Mac, to verify the version of Python use the command:
Some Linux distributions like Ubuntu and Fedora may have a version of Python installed by default but not all Linux distributions have this feature, in any case if your Linux operating system already has Python installed it is likely to have an outdated version installed so I recommend that you download the latest version of Python available for linux so you will have access to the latest features of this language.
Tand run the following command to check if you have a previously installed version of Python:
Congratulations! You have Python installed on your operating system, now you can start running your first lines of Python code. I hope you find the examples and video tutorials in this article useful, have fun creating the applications of the future with the help of Python. If you want to learn more about this programming language I invite you to follow these Python exercises for beginners on 4Geeks.