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
Social & live learning
The most efficient way to learn: Join a cohort with classmates just like you, live streams, impromptu coding sessions, live tutorials with real experts, and stay motivated.
Javier Leyva Seiglie
In order to update python version on the terminal, you can use these commands depending on your operating system:
Here is a detailed guide about how to update python version in other operating systems. In this article, we are going to focus on how to install it on the terminal.
To update Python on Windows you should download the Python version you want to upgrade to from python.org. In case you already have installed different Python versions and want to update the version of a virtual environment, you can do it by using the following command:
To select which Python version we want to use, it's as simple as as writing
py -version-you-want-to-use, example:
Before getting into upgrading Python, we need to know if it's already installed (no use to upgrade something that doesn't exist). To check if Python is installed type the following:
If there's an installed version of Python, the output should show you the installed version like this:
If your computer doesn't have Python installed, we need first to prepare our system to install Python, so we do the following:
Once we have downloaded the necessary files to install Python latest version, we can install it using
apt-get (recommended) or using the source code.
There's no need to reinvent the wheel,
Apt-Get it's a package manager built in Linux that will make our life easier while installing.
As a first step, let's configure the
deadsnakes PPA on the system by running the following command:
Time to update the Apt cache and install the Python package:
Python is now updated, but still is pointing to the previously installed version. We need now to update this:
A list of options will be displayed and prompt to pick the Python version you want to point to, select it by writing the number corresponding to the version you want to use.
To verify this selection, write:
Updating Python on MacOs is more straight forward. In MacOs systems you can as well have different Python versions installed at the same time. This makes it simpler to update it by visiting python.org MacOs download page, select the installer to download and run it.
If you are more of a
Homebrew user, run the following commands:
Once the installation finishes, you'll have the latest Python version installed which you can verify with the following code:
Hope you enjoy the reading and keep on the Geek side, you can check the 4Geek's Blog for more relevant content like how to exit python in terminal.