Member-only story

Install Python on Ubuntu

A quick rundown on how to install Python and packages on Ubuntu Linux.

Julian Willett, MD, PhD
1 min readFeb 6, 2021
Photo by Markus Spiske on Unsplash

As I have been investigating telomeres for my research, I have found that I need to try different programs for my work, not all of which rely on Linux-driven platforms. A lead that I was exploring was a python script, which unfortunately did not pan out in the python direction. Regardless, as it took me a bit of time to figure out how to install and use python on Linux, it is worth an article to save others time.

Steps:

  1. First, we have to install python on Linux. Do this via the following:
sudo apt install python3-pip

2. Next, we need to know how to install packages:

pip3 install pandas
pip3 install numpy

3. If we want to run a python script, we can use the following:

python3 <script>.py

Conclusion:

This is a brief guide on installing python on Linux. Have fun!

--

--

Julian Willett, MD, PhD
Julian Willett, MD, PhD

Written by Julian Willett, MD, PhD

Loving husband. Physician scientist who enjoys spreading his knowledge and experiences with the world whether related to medicine, science, or his hobbies.

No responses yet