Comment installer Python 3.9 sur un Chromebook sans Linux (2024)

Les développeurs ont souvent le choix entre macOS et Windows 11/10 pour leurs besoins de programmation. Cependant, depuis 2011, les Chromebooks sont apparus comme une troisième option intéressante. Dans ce tutoriel, nous vous expliquerons comment installer Python 3.9 sur un Chromebook sans Linux. Nous vous fournirons également les étapes pour installer Python IDLE sur votre Chromebook, afin que vous puissiez exécuter vos programmes Python facilement.

À propos de Python sur ChromeOS

Chrome OS est un système d'exploitation basé sur le navigateur Chrome. Cela signifie que tout ce que vous pouvez faire sur Chrome pour Windows ou Mac peut également être fait sur Chrome OS. Python est un langage de programmation très demandé, mais vous n'avez pas besoin d'un ordinateur portable ou d'un ordinateur de bureau haut de gamme pour l'exécuter. C'est pourquoi vous pouvez l'utiliser sur des Chromebooks de différentes marques, comme HP ou Dell.

Certains pourraient considérer les Chromebooks comme de simples navigateurs glorifiés. Cependant, au fil des années, ils ont beaucoup évolué. Ils peuvent désormais exécuter des applications Android et prendre en charge les applications Linux. Tout cela rend les ordinateurs portables Chrome OS beaucoup plus utiles que de simples navigateurs web. Bien sûr, ils ne proposent pas une gamme complète de logiciels de bureau comme Windows et macOS, mais ils offrent un million d'applications Android et une grande variété d'applications de bureau Linux.

Prérequis

Avant d'installer Python sur votre Chromebook, assurez-vous que votre Chrome OS est à jour. Voici comment vérifier et mettre à jour votre système :

  1. Cliquez sur l'heure dans la barre des tâches située en bas à gauche de l'écran.
  2. Cliquez sur l'icône des paramètres.
  3. Cliquez sur "À propos" pour vérifier les mises à jour.
  4. Cliquez sur "Vérifier les mises à jour" pour mettre à jour votre système.

Attendez que toutes les mises à jour soient téléchargées et installées. Il se peut que vous deviez redémarrer votre Chromebook pour terminer le processus.

Si vous souhaitez installer Python sur Chrome OS avec Linux, assurez-vous d'avoir Linux activé. Voici comment procéder :

  1. Ouvrez les paramètres de votre Chromebook.
  2. Cliquez sur "Linux".
  3. Cliquez sur "Activer".
  4. Cliquez sur "Suivant" sur la page des paramètres.
  5. Cliquez sur "Installer".

Le processus d'installation commencera et prendra environ 10 minutes, selon la vitesse de votre connexion Internet. Une fois l'installation terminée, le terminal Linux s'ouvrira automatiquement. Vous pouvez également l'ouvrir manuellement si nécessaire.

Méthodes pour exécuter Python sur Chromebook sans Linux

Maintenant que vous avez configuré votre Chromebook, voici deux méthodes pour exécuter Python sans Linux :

Méthode 1: Online-Python.com dans le navigateur

Online-Python.com est un autre environnement de développement intégré (IDE) en ligne qui vous permet d'exécuter Python 3.8 directement dans votre navigateur. Il vous permet d'ouvrir un terminal et de compiler du code en parallèle. Vous pouvez également activer ou désactiver le "mode sombre" pour l'IDE et changer le thème. Online-Python.com vous permet également de personnaliser les raccourcis clavier selon vos préférences.

Méthode 2: Skulpt.org Python Implementation

Skulpt.org est une implémentation de Python qui s'exécute directement dans votre navigateur. Une fois installé, vous pouvez lancer Skulpt.org à partir du menu des applications de votre Chromebook.

Méthode 3: Extension Python Shell pour Chrome

Si vous êtes polyvalent et que vous effectuez de nombreuses activités en ligne tout en programmant en Python, vous pouvez installer l'extension Python Shell pour Chrome. Cette extension prend en charge Python, Ruby et JavaScript. Une fois installée, vous pouvez lancer Python Shell à partir du gestionnaire d'extensions de Chrome. Une petite fenêtre s'ouvrira dans votre navigateur où vous pourrez exécuter du code Python.

L'avantage majeur de cette extension est qu'elle ne prend pas autant d'espace que le package Python original. Elle permet également d'exécuter des scripts Python simples ou complexes sans perturbation majeure.

Comment installer Python 3.9/3.8 sur votre Chromebook (Guide facile)

Bien que les Chromebooks ne soient pas spécifiquement conçus pour la programmation, ils peuvent être utilisés comme une option de secours pour les programmeurs Python. Si vous êtes débutant, vous pourriez rencontrer certaines difficultés lors de l'installation de Python et d'autres outils nécessaires. L'installation de Python sur un Chromebook n'est pas complexe, mais vous devez suivre attentivement les étapes suivantes. Assurez-vous également de sauvegarder toutes vos données importantes avant de commencer.

Pour installer Python sur votre Chromebook, suivez ces étapes :

  1. Ouvrez le terminal en cliquant sur le menu en bas de l'écran et recherchez "terminal" dans la barre de recherche. Si le terminal apparaît, cela signifie qu'il est déjà épinglé dans la barre des tâches.
  2. Partie 1 : Installez le gestionnaire de paquets Apt-Get.
    • Tapez ou copiez-collez la commande suivante dans le terminal : sudo apt-get update
    • Appuyez sur "Entrée" pour commencer la mise à jour.
  3. Partie 2 : Installez IDLE3 et python3-pip.
    • Pour installer IDLE pour Python, tapez la commande suivante dans le terminal : sudo apt-get install idle3
    • Ensuite, installez Python3-pip avec la commande suivante : sudo apt install python3-pip
  4. Une fois l'installation terminée, vous pouvez épingler le terminal dans la barre des tâches pour y accéder plus rapidement.

Comment exécuter Python sur votre Chromebook

Après avoir installé Python sur votre Chromebook, vous pouvez vérifier s'il fonctionne correctement en suivant ces étapes :

  1. Cliquez sur "IDLE3" dans la barre des tâches pour lancer l'IDE Python.
  2. Si l'IDE s'ouvre, cela signifie que Python est correctement installé et fonctionne sur votre Chromebook.

Vous pouvez également exécuter vos scripts Python en utilisant le terminal. Naviguez jusqu'au dossier où vous avez enregistré votre script Python, puis exécutez-le en utilisant la commande python3 nom_du_script.py.

Notez que l'IDE Ninja IDE ne fonctionne pas actuellement sur Chrome OS.

Conclusion

Cet article vous a expliqué comment installer Python 3.9 sur un Chromebook sans Linux. Nous avons décrit les méthodes pour exécuter Python sur un Chromebook sans Linux, ainsi que les étapes pour installer Python IDLE. Vous pouvez maintenant exécuter du code Python sur votre Chromebook et profiter de toutes les fonctionnalités de ce langage de programmation populaire. Que vous choisissiez d'utiliser Online-Python.com, Skulpt.org ou l'extension Python Shell, vous avez plusieurs options pour développer vos compétences en programmation sur un Chromebook.

Comment installer Python 3.9 sur un Chromebook sans Linux (2024)

FAQs

How do I install Python version 3.9 on Linux? ›

Launch the terminal and enter sudo apt-get update to update the package index. 2. Next, update the package index with the sudo apt-get upgrade command. During the process, the current Python version will be upgraded to version 3.9.

How do I install Python on my Chromebook? ›

The method is simple,
  1. Go to the chrome web store to download the Python Shell Chrome Extension.
  2. Click on add to chrome to install and add the extension to the browser.
  3. After the extension is installed, click on it to launch it.
  4. A small window will appear where you can write and execute the python code.

Does Python 3 work on Chromebook? ›

Installing Python3

the install-python script will install a version of Python 3 on your Chromebook. You can have multiple versions at the same time if you like. This compiles Python from the source-code so takes at least 5 minutes to run, compile and install. Ensure your machine has adequate battery power.

How do I know if Python 3.9 is installed Linux? ›

Chapter 2. Installing and using Python
  1. To verify the Python version installed on your system, use the --version option with the python command specific for your required version of Python.
  2. For Python 3.9: Copied! $ python3 --version.
  3. For Python 3.11: Copied! $ python3.11 --version.

How do I manually install Python on Linux? ›

To install or update Python on your Linux machine, follow these steps:
  1. Check for pre-installed Python.
  2. Install via Package Manager.
  3. Download the latest version of Python.
  4. Compile from source (optional)
  5. Configure the script and complete the build process.
  6. Verify installation.
Jan 16, 2024

How do I know if Python is installed on my Chromebook? ›

Checking Your Python Installation

We can do this by typing the command python3 -V into your terminal window. Make sure you type python3 -V and not python -V ! Typing python will check the Python 2 version which does not come preinstalled.

How to install Linux on Chromebook? ›

Turn on Linux
  1. On your Chromebook, at the bottom right, select the time.
  2. Select Settings Advanced. Developers.
  3. Next to "Linux development environment," select Turn On.
  4. Follow the on-screen instructions. Setup can take 10 minutes or more.
  5. A terminal window opens. You have a Debian 11 (Bullseye) environment.

How to use Python in Linux terminal? ›

To execute a Python script, first open a terminal, then navigate to the directory where the script is located, and finally, run the script using the 'python' command followed by the script's name. On Linux, consider using python3 to ensure you're using Python 3.

How to install Python on Linux server? ›

  1. Install Development Packages Required to install Python on Linux: ...
  2. Step 2- Download latest version of Python: ...
  3. Step 3- Extract the tar file to install Python on Linux: ...
  4. Step4- Configuring the Script: ...
  5. Step 5- Getting Through the steps to install Python on Linux and finishing installation. ...
  6. Step 6- Verify the installation:

How do I install Python? ›

Python Installation on Windows
  1. Step 1: Select Python Version. ...
  2. Step 2: Download Python Executable Installer. ...
  3. Step 3: Run Executable Installer. ...
  4. Step 4: Add Python to Path (Optional) ...
  5. Step 5: Verify Python Was Installed on Windows. ...
  6. Step 6: Verify PIP Was Installed. ...
  7. Step 7: Install virtualenv (Optional)
Dec 5, 2023

How do I update Linux on Chromebook? ›

To update Linux on your Chromebook, you need to open the Terminal app from the App Launcher. Head to the Linux folder in the App Launcher to access the Terminal. 2. Next, run the below command to update all the packages and dependencies.

How to install Python on Linux without Sudo? ›

Install Python
  1. Uncompress the folder: tar -zxvf Python-2.7.7.tar.gz.
  2. Move inside the directory: cd Python-2.7.7.
  3. Create the destination folder: mkdir ~/.localpython.
  4. Prepare the environment for building: ./configure --prefix=/home/<username>/.localpython.
  5. Building the system: make.
  6. Implement the installation: make install.

How do I install Python 3.9 using apt? ›

Install Python 3.9
  1. Check your python version with the command: python3 -V This will output your current version of python3. ...
  2. Download the python repository for ubuntu: sudo add-apt-repository ppa:deadsnakes/ppa.
  3. Install Python 3.9: sudo apt install python3.9.
May 25, 2023

How to install Python39 in Linux? ›

Install Python3. 9
  1. Run the command to install Python39. Copy. yum install python39-pip.
  2. Execute these commands to set Python alternatives to Python39: Copy. update-alternatives --config python3 update-alternatives --config python. Note:

How do I install a different version of Python on Linux? ›

We shouldn't change the default Python version of Linux, but we might still need a different Python version than the default one. The right way to install another Python version is by using virtual environments. This way, we avoid overwriting or causing trouble with Linux packages.

References

Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6415

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.