Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Meet Python The Python Shell

Pankaj Kumar
Pankaj Kumar
40 Points

I want to install python in my local machine. Please help

I am using ubutnu machine and eant to install python on local machine. And which system windows or linux is beeter for python?

2 Answers

Steven Parker
Steven Parker
231,236 Points

Are you sure you don't have it? I understand Python normally comes pre-installed on Ubuntu.

But if not, it's probably just a matter of using this command:

sudo apt-get install python3

And the language works equally well on both platforms, so a windows/linux decision should probably be based on other factors.

Hi there,

If you have ubuntu installed on your machine by default it supposes to have python in it. However, you can check that by :

python ––version

If it's not installed you can use :

sudo apt update

sudo apt install software-properties-common

sudo apt update

sudo apt install python3.8

python ––version

The last command will show you the python version installed on your computer. anyway if you had more issues here is the link to the site which has few ways to install the python on ubuntu.

https://phoenixnap.com/kb/how-to-install-python-3-ubuntu