1-855-NGTLearning (1-855-648-5327)  ||  (925) 659-8000  || admin@ngtlearning.com

​​​​​​​​​​​​Note: 

  • If the "Turn On" is disabled on your Chromebook, talk to your system admin (or school Chromebook admin) and request that they give you the proper privileges to enable Linux on your Chromebook.
  • If your administrator refuses to enable Linux privileges, you are a bit out of luck installing Python on your Chromebook. The next best option for you is to use online Python editors like Replit (https://replit.com), Online Python (https://www.online-python.com/ ), or some other Python online editor.



2. Install Python, IDLE and PIP:

  • Click on the Launcher icon (little circle) in the bottom-left corner of your screen.
  • Click on the terminal window or open the terminal window by typing terminal into the search bar.​​

  • A new terminal window will open.​​​

  • The IDLE window will open.
  • On the top left corner of the IDLE shell window, select File >> New File. It will open the IDLE editor window.
  • Write the following code in the editor window​
  1. print("Hello, world!")​


  • Save this File as project1, and it will be saved as  project1.py
  • From  the top menu of the editor window, select Run >> Run Module
  • You will see Hello, world! Showing up on the shell output window.


  • Alternate option: An alternate option to run your Python code is to open the terminal window, navigate to the directory where you saved your Python file, and execute it using the python3 command:
  1. python3 project1.py


  • It will execute your Python code; you should see the output in the terminal.​​​


5. (Optional Step) Install the Python Integrated Development Environment (IDE) of your choice:
You can use any other text editor or IDE to write Python code. Some popular options include Visual Studio Code, PyCharm, and Sublime Text. You can install these from the Linux terminal using apt or the Chrome Web Store if available.


Congratulations!! You have successfully installed Python on your Chromebook. You can now start coding in Python on your Chromebook.​​

​​

  • In the terminal window, run the following commands to update your package list, and then install Python, IDLE, and PIP one by one as shown in picture below:
  1. sudo apt update
  2. sudo apt install python3
  3. sudo apt-get install idle3
  4. sudo apt install python3-pip​​

Knowledge Base Article

How to Install Python on a Chromebook 

  • ​​Now click on the option under Linux (see the screenshot)​​

​​​

3. Check Python Installation:

  • To verify that Python installation is successful, run the following command on the terminal window:
  1. python3 --version


  • This command will display the Python version installed.​​


​​​4. Write and Test Python Code: You can now write Python code and test it using the following steps:

  • Click on the Launcher icon (little circle) in the bottom-left corner of your screen.
  • Click on the IDLE window or open it by typing IDLE into the search bar.​​

​​​​​​​​​​​Chromebooks run on Chrome OS a Linux-based operating system that allows user to run Linux applications. You can use Linux to install Python on your Chromebook. Here's a step-by-step guide on how to do it:

1. Enable Linux

  • Click on the system tray in the bottom-right corner of your screen.
  • Click on the gear icon to open the Settings menu.
  • Scroll all the way down and click Advanced (it will show additional options underneath).
  • Now scroll down to the Developers option and click the "Turn On" button to enable Linux.
  • After clicking the "Turn On" button, follow the on-screen prompts to set up Linux on your Chromebook. ​​​​