Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+4 votes
asked in CSC201 Spring 2021 by (8 points)

2 Answers

+4 votes
Best answer

I have a Lenovo Chromebook Duet and this is how I did it:
1. In settings, there is something called "Linux (Beta)". Press "turn on" and then install it. It can take a while, so be patient. When that is complete the Linux terminal will open automatically.
2. In the terminal you type "sudo apt-get update" and press enter to get the latest update.
3. After the update is completed, type "sudo apt install thonny" and press enter.
4. You will be asked if you want to continue. Type "Y" to indicate yes.
5. When the download is complete, you can close the terminal.
You will now find Thonny on your homescreen.

answered by (8 points)
selected by
0 votes

To install thorny on Chromebook you should enable Linux(beta) on by going to system settings and clicking on time in the lower right corner and then the Gear icon for Settings, then Scroll down to “Linux (Beta)” and select Turn On, and at the end a Terminal window will open. You can run Linux commands here, then download Miniconda which is a free distribution of Python that works on Linux computers. It provides a basic implementation of Python and the ability to add additional packages manually as needed. Since disk space is at a premium, we will use this as opposed to Anaconda, its full-featured cousin, which includes many Python packages like numpy, scipy, and ipython notebook automatically. Navigate to the MiniConda site, scroll down to the “Linux installers” section, and click on the link for 64-bit version of Python 3.8. Once downloaded, click on the “Confirm download” pop-up and select “Keep”. Now It’s very important to now move the installer into the “Linux files” section of your computer. Open up your files by clicking on the Launcher button in the lower left corner, then the Up arrow, and then Files under the search bar. The file will be named something like Miniconda3-latest-Linux-x86_64.sh.Then Drag it from Downloads into the Linux Files section, then install Miniconda Open the Terminal app from the Start, confirm that the miniconda installer is in your current directory by typing ls, then Then to install it run the command sudo bash Miniconda3-latest-Linux-x86_64.sh. $ sudo bash Miniconda3-latest-Linux-x86_64.sh There will be a prompt to review the license. Click Enter to continue: , then On the final step, you’ll be asked: “Do you accept the license terms? [yes no]”. Type in “yes” and press Enter. after that The next step asks where to install Miniconda. The default suggested is /root/miniconda3 however I prefer to use /opt/miniconda3 instead which is a directory commonly used for installing unbundled software packages. So type in /opt/miniconda3 instead, then When asked, “Do you wish the installer to initialize MiniConda3 by running conda init? [yes no]” type in yes, And we’re done! The instructions will note that closing and re-opening the Terminal app is required. Now to use python you need to run Conda–and by extension Python–enter a base environment by typing source /opt/miniconda3/bin/activate. after that The new parentheses at the start of the prompt called (base) confirm the environment is active. To confirm the installed Python version, type python --version. then And then to enter Python itself, simply type python.

Now if you wished you had pictures to explain, you could go to the link below to do the same steps!!

answered by (8 points)