To install Python on a Chromebook we need to enter developer mode. Unfortunately the exact instructions for how to do this vary by device. Here is a link to all Chromebook versions (scroll to the bottom of the page) and their official documentation which will give you the specific instructions.

Download Anaconda

Anaconda is an open source package that will let us run Python. Go to the website and download the Linux version.

Make sure to click the button for the 64-BIT INSTALLER so we can install Python 3.7. This might take a while to download depending on your internet connection.

Note: If you have a 32-bit Chromebook, such as the ASUS C201 with Rockchip, download the 32-bit version of Anaconda.

Once the download has completed, check your Downloads folder to make sure it is there. You should see a folder named “”.

Now open up a Terminal window by pressing Control + Alt + T (all 3 keys at the same time). You’ll see a black screen that says “Welcome to crosh, the Chrome OS developer shell.”

Type the following commands and hit ENTER to execute them:

crosh> shell
chronos@localhost / $ sudo chmod 777 /usr/local
chronos@localhost / $ cd ~/Downloads
chronos@localhost ~/Downloads $ ls
chronos@localhost ~/Downloads $ bash

You will need to hit ENTER twice and scroll down using your arrow key to read the Anaconda license. At the bottom you’ll see the following prompt:

Do you approve the license terms? [yes|no]
>>> yes

Type yes. Next it will ask if we want to install Anaconda into the location /home/chronos/user/anaconda3. We do not. So type CTRL + C to abort this installation and instead, in the terminal, enter the location /usr/local/conda3 followed by the ENTER key:

[/home/choronos/user/anaconda3] >>> /usr/local/conda3

It takes a while for this to install. You’ll see a stream of text in your Terminal until finally you get the following prompt:

Do you wish the installer to prepend the Anaconda3 install location to PATH in your /home/choronos/user/.bashrc ? [yes|no]

We want to type yes here and hit Return:

[no] >>> yes

You should see a confirmation message that includes Thank you for installing Anaconda3!

Run Python in a new shell

Before Anaconda will work you need to exit the terminal shell by closing your current tab. Next open up a new terminal shell by pressing Control + Alt + T and then typing shell from the command prompt:

crosh> shell
chronos@localhost / $ python --version
Python 3.7.0 :: Anaconda 4.3.1 (64-bit)

And now Python is installed!

Next Steps

If you want to install additional packages, you can use the conda command to do so. Here’s a link to the official conda instructions.

Want to improve your Python? I have a list of recommended Python books.