2 Ways To Install Python on Chromebook 2022 (With/Without Linux)

0

2 Ways To Install Python on Chromebook 2022 (With/Without Linux)

Developers often choose between macOS and Windows 11/10 but since 2011 Chromebooks have come in with a third option. This tutorial provides you with the methods to Install Python 3.9 on a Chromebook without Linux. As Python is much more than just being installed and left, you have to run it too! This is why we included the steps to install Python IDLE on Chromebook too for your convenience.

Chromebooks are portable systems that run Chrome OS and are designed primarily to run workflows that run in browsers generally. They come with application support but are not for heavy workloads. To be precise if your work is mostly in a web browser then this can be used, but if you have something which is complicated and requires specific applications then this might not be the best choice.

About Python on ChromeOS

As you know Chrome OS is an Operating system that is based on the Chrome browser. This means anything which you perform on chrome for windows or Mac can now be done in Chrome operating system as well. Python is a programming language and in very high demand. However, you don’t need high-end laptops or desktops to run it hence why you can use it on Chromebooks from different brands such as HP or Dell.

Does this sound like a glorified browser? Well, it used to be, but in recent years it has changed a lot. These are now able to run Android applications and also provide support for Linux apps. All this makes Chrome OS laptops a lot more helpful in doing more than simply web browsing. You won’t be getting a full desktop software portfolio of Windows and macOS rock but you shall have a million applications of android and a huge variety of Linux desktop applications.

Prerequisites:

  1. Updated Chrome OS
  2. Linux enabled (Only if you want to use the Linux installation method)

You need to make sure your Chrome OS is running its latest version and is updated:

Follow the 3 steps below to make sure you are updated:

  1. For this, you need to click on the “time option” present in the menu bar at the bottom left corner.
  2. You will now see a settings icon, click on that.
  3. After this, you need to click on “about” in order to update chrome OS to its latest version.
  4. Then click on “check for updates”, doing so shall update the chrome operating system.
  5. Now, wait and let it download and install all pending updates. A reboot may be required.
  6. Done.

Now, if you want to Install Python on Chrome OS with Linux, make sure you have it installed: Follow the 4 steps below to enable Linux:

  1. You need to open Chromebook settings and click on “Linux”.
  2. After this click on “turn on”.
  3. Then click on “next” which can be seen on the settings page.
  4. Hit “install
  5. All done.

After this process of installation shall begin, this shall only take 10 minutes or might differ due to the speed of the internet.

After this process of installation, the Linux terminal shall pop up and open in front of you automatically but here you need to check whether it can be opened manually or not.

Python on Chromebook Without Linux (2 Methods)

Method #1: Online-Python.com in the browser

Online-Python.com is another IDE online that provides Python 3.8 in the browser for you. It allows you to open a terminal and compile the code too in a parallel menu.

You also get an option to enable or disable “dark mode” for the IDE and change the theme. Online-Python.com also allows you to set your key bindings to your favorite editors such as Vim, Nano or VSCode.

Try Online-Python.com

Method #2: Skulpt.org Python Implementation

This is the in-browser implementation of Python, now whenever you are in the run code it is executed on the browser fully.

Once you have installed this, you now need to launch this from the applications menu.

Try Skulpt.org

Method #3: Python Shell Extension for Chrome

If you are versatile and do a lot of online activities while programming Python, what you can do is install the Python Shell Chrome extension including support for Python, Ruby as well as Javascript.

Once this has been installed you need to proceed it to launch from the extensions manager. You shall see a small window pop-up on the browser where you can execute the python code.

The major benefit is that it does not take up as much space as the original Python package. It also runs simple to complex .py scripts fine with minimal disruption.

Install Python Shell

SEE ALSO: How To Install Python 3 Command Line on Windows 11.

How To Install Python 3.9/3.8 on your Chromebook (Easy Guide)

Install Python 3.9 on Chromebook

Chromebook is not designed for coding is a popular superstition that we deny as these are good for code or even conducting tasks that are related to programming.

These are good for coding though they are not as powerful being a python programmer you can use this as a second option.

If you are a beginner then you might face certain issues regarding python installation and other tools which are to be installed.

Installation of Python on Chromebook is not complex but the steps below have to be followed carefully. For those who do not know, don’t worry, follow through to know and make sure you have a full backup.

You will need the terminal on your screen after following the prerequisite requirements above.

  1. You need to go to the “bottom menu” and then search for “terminal” in the search bar. Now if it has appeared it means that the Linux terminal is on a shelf or main menu bar by clicking on “Pin it to Shelf”,
  2. It will jump on the shelf instantly allowing you to access it quickly.

Part 1: Install the Apt-Get Manager package:

Once you have installed Linux on your Chromebook you now need to install different Linux programs through Linux commands. For this, you need to install or either upgrade an Apt-Get-Manager to install other Linux programs.

  1. At first, you need to upgrade Apt-Get-Manager by either typing or copy-pasting this command in Linux Terminal, and don’t forget sudo:
[email protected]:~# apt-get update

Hit enter and it will begin to update.

Part 2: Install IDLE3 and python3-pip:

Install Python IDLE for Chromebook

To install a Python program all you need to have is IDLE for Python. We are going for IDLE3 because it has

Now, to install this you need to type the following command in the terminal:

[email protected]:~#apt-get install idle3

Now install Python Python3-pip with the below command:

[email protected]:~#apt install python3-pip

Once the process of installation is complete you can add this to the self as a shortcut by using the very same method which has been mentioned above for adding a terminal to the shelf.

ALSO SEE: How To Install Python 3.10 on Ubuntu (Ultimate Guide).

How To Run Python on your Chromebook

How to run Python code on Chromebook

After this process of installation, you need to check and see if Python is running perfectly or not on Chromebook. Here is how to run Python on your Chromebook once its installed:

  1. If you want to check python working then simply click on “IDLE3” present on the menu bar. If it launches, then your Python is now running.
  2. Launch the terminal and navigate to the folder where you have the Python script, now run it with the name e.g. Ninja_Python.py.

Note: Ninja IDE currently does not work on Chrome OS.

Other Python articles that are technical:

  1. How To Install and Run Python Code on Android.
  2. How To Load and Dump Python YAML files.
  3. Basics of Creating and Deleting Python virtual environments.

Conclusion

Python Installation for Chromebook

This article taught you how to Install Python on Chrome OS. We outlined both methods which detailed Python without Linux and with it. You can then further run Python code using idle on a Chromebook or with the use of extensions or online compilers. The choices are versatile and adaptive to various scenarios and needs. Do let us know in the comments below which one you choose!

LEAVE A REPLY

Please enter your comment!
Please enter your name here