Install Python 🐍 on Chromebook

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • Install Debian Linux on a Google Chromebook with a virtual machine (does not require developer mode). Once Linux is installed, a command terminal is available. A first step is to update Debian Linux with:
    sudo apt-get update
    The Debian Linux installation comes with Python3 and is started at the command terminal with the command python3. Additional Python packages are added to the default Python3 when you install the pip3 package manager:
    sudo apt install python3-pip
    Packages such as Numpy, Matplotlib, Scipy, and Gekko are installed with:
    pip3 install numpy
    pip3 install matplotlib
    pip3 install scipy
    pip3 install gekko
    To see Matplotlib plots an additional package must be installed:
    sudo apt install python3-tk
    More information on Python installation and package management: apmonitor.com/pdc/index.php/M...
    Below is the complete code script that is defined at 8:00. Save the file as test.py:
    import numpy as np
    import matplotlib.pyplot as plt
    x = np.linspace(0,2*np.pi)
    y = np.sin(x)
    plt.plot(x,y)
    plt.show()
    Learn Scientific Python: apmonitor.com/che263
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 466

  • @tubadurantdoda
    @tubadurantdoda ปีที่แล้ว +6

    Hey, Thanks a lot for this video. I needed to install Python for my courses, but didn't know it was possible on Chromebook. I applied every step you showed in the video and it all worked perfectly fine! Thanks!

    • @SECURED705
      @SECURED705 ปีที่แล้ว

      Plz tell me after doing this perfectly how can I code

  • @gregf9160
    @gregf9160 4 ปีที่แล้ว +3

    It really did help. I had no idea that Chromebooks could do all this now. I'm sold.

    • @jayd1993
      @jayd1993 4 ปีที่แล้ว

      @Sam S why not?

  • @williamshakespeare7596
    @williamshakespeare7596 4 ปีที่แล้ว +37

    due to some updates in order for you to find Linux in your settigs you have to go to your computer's settings not your browser ssettings. :)

    • @chrisjackson-zu1rn
      @chrisjackson-zu1rn 4 ปีที่แล้ว +2

      how

    • @ArtzyProductions
      @ArtzyProductions 4 ปีที่แล้ว +3

      Yea i had to do that, too.

    • @notwalshy
      @notwalshy 3 ปีที่แล้ว +2

      @@ArtzyProductions Yup just did that as well, i miss Windows but shit i dont miss Windows HAHA

    • @ArtzyProductions
      @ArtzyProductions 3 ปีที่แล้ว +2

      @@notwalshy haha

    • @bensenw9025
      @bensenw9025 3 ปีที่แล้ว +1

      Thank you

  • @BabyKokonut
    @BabyKokonut 3 ปีที่แล้ว +1

    you are a god send! I was searching for a couple days now on how to download pillow on my chrome book. THANK YOU SO MUCH!

  • @nathancrotty8115
    @nathancrotty8115 4 ปีที่แล้ว +73

    yay, now I can be programming on my school computer instead of "learning" what they want me to learn.

    • @apm
      @apm  4 ปีที่แล้ว +15

      I'm surprised that they have it unlocked for you to install python - Nice work!

    • @jonaskristoffersen4670
      @jonaskristoffersen4670 4 ปีที่แล้ว +1

      Same

    • @milomms4869
      @milomms4869 4 ปีที่แล้ว +3

      @@jonaskristoffersen4670 not hard to unlock it anyways just do a hard reset if needed. always a way to do that.

    • @lukehiguera6512
      @lukehiguera6512 2 ปีที่แล้ว

      @@milomms4869 how do unblock python from a school computer?

  • @supermarketsweeps
    @supermarketsweeps 2 ปีที่แล้ว +1

    Thankyou no one told me that you have install TK to get graphics to work so happy to find this video

  • @Ayoutubeaccount3
    @Ayoutubeaccount3 4 ปีที่แล้ว +3

    Thanks! I'm new to code but it worked, for anyone else that doesn't quite understand:
    so basically nano (whatever you want your program to be called).py sets up the text editor to make your program
    then come back into linux and when you want to run the program and type python3 (whatever you called your program).py

    • @apm
      @apm  4 ปีที่แล้ว

      Thanks for that summary.

  • @resecomas3229
    @resecomas3229 5 ปีที่แล้ว +3

    Very helpful. Thanks so much!

  • @waynestrydom6522
    @waynestrydom6522 4 ปีที่แล้ว +3

    Great video, thanks so much!! :D

  • @_.Apocalypse._
    @_.Apocalypse._ 4 ปีที่แล้ว +6

    After a few errors I finally downloaded python on my chromebook using crouton nice video keep up the good work although I'd have to recommend you to do a screenrecording next time the quality will be much better :)

    • @apm
      @apm  4 ปีที่แล้ว +1

      I agree that the quality on this one is not good. I've received a few recommendations on screen casting software for Chromebooks. Let me know if you know of other good options as well.

  • @factsknowledge5228
    @factsknowledge5228 4 ปีที่แล้ว +4

    You sir, are the best!

  • @patmiller868
    @patmiller868 4 ปีที่แล้ว +1

    Very helpful video. Thank you!

  • @TrstensOnig
    @TrstensOnig 4 ปีที่แล้ว +13

    i was confused why it didn’t work but come to find out i thought it said mumpy🤦🏾‍♂️😂

  • @firnyx
    @firnyx 3 ปีที่แล้ว +1

    it worked very well thank you !

  • @calebmatthew1568
    @calebmatthew1568 4 ปีที่แล้ว +2

    Thanks you so much this has helped alot

  • @trannieofliberty
    @trannieofliberty 2 ปีที่แล้ว +1

    thank you so, much this was an easy fix when adding python to chromebook

  • @lyramiasardothien5978
    @lyramiasardothien5978 4 ปีที่แล้ว +1

    Thank it helped me a lot !

  • @ddastoor
    @ddastoor 5 ปีที่แล้ว +1

    great video, thanks !!!

  • @Tropicalplayer
    @Tropicalplayer 3 ปีที่แล้ว +1

    Thanks helped so so much!!

  • @johncole340
    @johncole340 3 ปีที่แล้ว +1

    worked so well!

  • @Christina-qn6vh
    @Christina-qn6vh 8 หลายเดือนก่อน +1

    Very helpful thank you!!

  • @oldschooloutlaw6522
    @oldschooloutlaw6522 5 ปีที่แล้ว

    I need to say thank you i just got a samsung cromebook plus and this is the first video i watched where everything you did my laptop did to with no problems whatever so once again thank you i was about to give up and go get a windows laptop like the micosoft pro

    • @apm
      @apm  5 ปีที่แล้ว

      I'm glad it helped!

  • @gabrielrodriguez8727
    @gabrielrodriguez8727 4 ปีที่แล้ว +6

    Thank you so much.
    I don't know what I did but thanks

    • @apm
      @apm  4 ปีที่แล้ว +1

      Glad I could help

  • @whimplemail
    @whimplemail 4 ปีที่แล้ว +1

    Brilliant!

  • @elizabethn2292
    @elizabethn2292 4 ปีที่แล้ว +8

    thank you! i’m going to an mit learnathon but we need python and i have a chromebook

    • @apm
      @apm  4 ปีที่แล้ว +1

      That sounds exciting. Hopefully you have a Chromebook version that supports this.

  • @soannn5286
    @soannn5286 5 ปีที่แล้ว +3

    when I type the command 'pip3 install matplotlib' this message error comes out:
    E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
    do I have to be in developer mode to solve it?

    • @apm
      @apm  5 ปีที่แล้ว

      It looks like something else needs to finish installation. I'd recommend that you wait until it finishes or else reboot.

  • @tpastika
    @tpastika 4 ปีที่แล้ว +2

    Hi. Just got a pixel go chrome book and trying to download Pycharm to self teach. Do you have a introductory video for that too? Was able to download that and Linux but when pycharm is clicked to open some random program on the chrome book opens instead. Positive basic steps were missed but I don’t see a video for what needs to be done to download Pycharm and whatever else is needed and run it from scratch. Thanks for any help!

    • @apm
      @apm  4 ปีที่แล้ว

      It appears that PyCharm isn't compatible with ChromeOS, but this could change if JetBrains decides to support it. I see a few online forums that suggest Google Colab for a browser-based IDE or Visual Studio Code if you want to install a Python locally on a Chromebook.

  • @JeffStreams
    @JeffStreams ปีที่แล้ว +1

    Thank you so much!

  • @pythonshell2.785
    @pythonshell2.785 3 ปีที่แล้ว +3

    what if we don't have the linux beta ( 0:17 ) in my chromebook

    • @apm
      @apm  3 ปีที่แล้ว

      check the comment by Tarik on the updated way - you need to go to the computer settings. Some models also don't allow this.

  • @TheGamingRoKid
    @TheGamingRoKid 3 ปีที่แล้ว +1

    how do I get out of the gnu nano 3.2 test py, when I put plt.show() it does not let me get out

    • @apm
      @apm  3 ปีที่แล้ว

      Type ":q" and then respond yes.

  • @tablecloth1752
    @tablecloth1752 5 ปีที่แล้ว +1

    Thank you.

  • @davidtian6262
    @davidtian6262 4 ปีที่แล้ว +1

    Wonder how much storage was used to do your above Linux/Python installation? More than 10G? Thanks

    • @apm
      @apm  4 ปีที่แล้ว

      I'm not sure on the exact amount but I think it is around 100MB for everything. If you get more Python packages then it could be more. Try the command "df" before and after installation.

  • @kempkeith1904
    @kempkeith1904 2 ปีที่แล้ว +2

    So I got to the pip3 install numpy at which it is “done downloading” but for a second it’s been saying “running setup.py bdist_wheel for numpy …” what does this mean? New to this whole programming thing

    • @apm
      @apm  2 ปีที่แล้ว

      It runs setup.py to install the module. Did it complete successfully?

  • @angelruiz2825
    @angelruiz2825 4 ปีที่แล้ว +2

    I am completely new to coding and python is entirely new. I have a Chromebook x360 and I was able to do everything in the video although I do have 1 question. What did you do to get the test to pop up when you type "1s"? when I do that nothing comes up.

    • @apm
      @apm  4 ปีที่แล้ว

      Try "ls" instead of "1s". It is used to list the directory contents. If there is nothing in the directory then it won't return anything. It is similar to "dir /w" in Windows but "ls" is a Linux / Unix command.

    • @adusuetoakueto4130
      @adusuetoakueto4130 ปีที่แล้ว

      how did u do the ctrl cause i dont have this button

  • @andrewgarrett3573
    @andrewgarrett3573 4 ปีที่แล้ว +1

    Thank you. Well explained and works well for me except for a large black bar across the display of my sine wave. The buttons below are blacked out too. Any ideas why that is?

    • @apm
      @apm  4 ปีที่แล้ว

      I haven't seen that before. Is it a black bar on the displayed chart like at 9:21. What does it look like if you save the figure as a PNG with plt.savefig('myFigure.png')? You'll need to open the png file to see the result of the png file save.

  • @harrisondale7564
    @harrisondale7564 2 ปีที่แล้ว +1

    when installing numpy I got a warning that f2py, f2py3, and f2py3.9 are installed but not on PATH. How do I install these directories on path? Thanks

    • @apm
      @apm  2 ปีที่แล้ว

      Does this help? stackoverflow.com/questions/58051467/fixing-path-for-python-libraries-using-bash

  • @guillermodilone7923
    @guillermodilone7923 4 ปีที่แล้ว +3

    thanks for the video! when trying to run sudo apt install python3-pip , i get the error message "sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set"? any thoughts, suggestions please?!

    • @apm
      @apm  4 ปีที่แล้ว

      It may be one of two things: 1. Either you do not have sudo privilege on the Chromebook or else 2. There are some problems with sudo in /usr/bin/ Does this help? unix.stackexchange.com/questions/419122/sudo-must-be-owned-by-uid-0-and-have-the-setuid-bit-set

    • @apm
      @apm  4 ปีที่แล้ว

      You can also try the install without the "sudo".

  • @gavindombrow1413
    @gavindombrow1413 4 ปีที่แล้ว +3

    How do you open python? I’m a beginner so I’m still learning but I’m still at the end we’re u ended the vid. And I want to open python. How?

    • @apm
      @apm  4 ปีที่แล้ว

      You can type "python" or "python3" at the command prompt. See apmonitor.com/pdc/index.php/Main/InstallPython for instructions on Jupyter notebook, Spyder, IDLE, PyCharm, or other IDEs that are available but not for Chromebook. Also look at colab.research.google.com (Google Colab) to run Python in a web-browser. This should also work on a Chromebook.

  • @linuxkernel7415
    @linuxkernel7415 3 ปีที่แล้ว +2

    so my is not working at 8:00 it said File "test.py", line 1
    inport numpy as np
    ^
    SyntaxError: invalid syntax
    what dose it meen?

    • @rrc
      @rrc 3 ปีที่แล้ว

      Try this instead: import numpy as np

  • @razinator1
    @razinator1 5 ปีที่แล้ว +1

    Thanks a bunch! Have you played with plotly on a chromebook? That's next on my list...

    • @apm
      @apm  5 ปีที่แล้ว

      I haven't used plotly on a Chromebook yet. Let us know if your testing is successful.

    • @razinator1
      @razinator1 5 ปีที่แล้ว +1

      Works like a charm: 1) use pip to install plotly 2) sign up for a free plotly account 3) get your API key and setup your credential file 4) write some code and the terminal automatically opens your plotly plots in chrome
      The plotly getting started guide has it all spelled out great!

  • @curiously-cinnamon
    @curiously-cinnamon 4 ปีที่แล้ว +2

    At 8:12 , after saving test.py by doing ctrl X and then typing Y, how did the screen automatically revert to terminal? Mine is still on the nano screen. How do i make it go to the terminal?
    Edit 1 : I am using a pixelbook, if that helps.
    Edit 2 : Nevermind, i just had to press enter, and it took me to the terminal. Thanks anyway!

    • @apm
      @apm  4 ปีที่แล้ว +1

      Thanks for including the question...and the answer! That will help others who are also stuck.

  • @sarahandrews745
    @sarahandrews745 2 ปีที่แล้ว +1

    I'm getting sin is not defined as an error message when trying to run the test.pt. Could you possibly help me with this please?

    • @apm
      @apm  2 ปีที่แล้ว

      Here is the complete script that is defined at 8:00. Don't forget the import statements and save the file as test.py:
      import numpy as np
      import matplotlib.pyplot as plt
      x = np.linspace(0,2*np.pi)
      y = np.sin(x)
      plt.plot(x,y)
      plt.show()

  • @Kanderman
    @Kanderman 5 ปีที่แล้ว +1

    can you help me i cant use tkinter

  • @sweetsue75
    @sweetsue75 4 ปีที่แล้ว +4

    I recently got Chromebook and I was able to install the python program with your excellent help. Now my question is how to update the program. The current version I have is 3.5 and I would like to update with the high version. Thank you in advance.

    • @apm
      @apm  4 ปีที่แล้ว +2

      Python 3.5 may be the highest version available right now on Chromebook even though 3.8 is available from Python.org. You can get the highest version. You can get the highest version from the command line "sudo apt install python3 --upgrade"

  • @neuromencer0000
    @neuromencer0000 4 ปีที่แล้ว +1

    I followed the instruction, and I got this message when I run test.py.
    Traceback (most recent call last):
    File "test.py", line 7, in
    Plt.plot(x,y)
    NameError: name 'Plt' is not defined
    any suggestions?

    • @apm
      @apm  4 ปีที่แล้ว +1

      You should use plt.plot instead of Plt.plot once it is installed.

  • @mattl5387
    @mattl5387 4 ปีที่แล้ว +1

    What do I do to this
    Traceback (most recent call last):
    File "test.py", line 4, in
    x = np.linspace(0.2*np.pi)
    File "", line 4, in linspace
    TypeError: _linspace_dispatcher() missing 1 required positional argument: 'stop'

    • @apm
      @apm  4 ปีที่แล้ว

      Try: x=np.linspace(0, 2*np.pi) with a comma instead of a period.

  • @Ash-br8oo
    @Ash-br8oo 4 ปีที่แล้ว +1

    Hey little help here? Mine says
    GPG error: storage.googleapis.com/cros-packages/79 stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
    W: The repository 'storage.googleapis.com/cros-packages/79 stretch Release' is not signed.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    What should I do?

    • @apm
      @apm  4 ปีที่แล้ว

      I haven't seen that error before. Anything on Stack Overflow?

  • @anonymouscash74
    @anonymouscash74 4 ปีที่แล้ว +1

    when I put pip3 install numpy, it says: Requirement already satisfied: numpy in ./.local/lib/python3.7/site-packages (1.18.4)

    • @apm
      @apm  4 ปีที่แล้ว

      You may have already installed it previously or installed a package that required numpy.

  • @Charles-kg1zk
    @Charles-kg1zk 2 ปีที่แล้ว +1

    I've been having an error in which I enter python3 test.py and it responds: Traceback (most recent call last):
    File "/home/karaluscharles/test.py", line 2, in
    import matplotlib.pyplot as plt
    ModuleNotFoundError: No module named 'matplotlib'
    Could you (possibly) answer this?

    • @apm
      @apm  2 ปีที่แล้ว +1

      You need to install the matplotlib package with pip3 install matplotlib. Here are detailed instructions on installing Python packages: apmonitor.com/pds/index.php/Main/InstallPythonPackages

  • @paullol7852
    @paullol7852 2 ปีที่แล้ว +1

    why is it not working for me? i have been following everything, but when i have to dwonload sudo apt install python3-pip, it always does not allow me. help plz

    • @apm
      @apm  2 ปีที่แล้ว

      Please share the specific error message.

  • @JulienMariemagdeleine
    @JulienMariemagdeleine 4 ปีที่แล้ว +1

    My Dell Chromebook doesn't even display the "Linux (beta)" option. Where else can I find it?

    • @apm
      @apm  4 ปีที่แล้ว

      Here is the list of devices that support this method of installing Linux: www.reddit.com/r/Crostini/wiki/getstarted/crostini-enabled-devices
      Codename/Boardname Brand Model Name
      banon [R70] Acer Chromebook 15 (CB3-532)
      bob [R69] ASUS Chromebook Flip C101PA
      celes [R70] Samsung Chromebook 3 (XE500C13)
      coral [R69] Acer Chromebook 11 (C732, C732T, C732L & C732LT ),
      Chromebook 11 (CB311 - 8H / 8HT),
      Chromebook 15 CB315-1H / 1HT,
      Chromebook Spin 15 CP315-1H / 1HT,
      Chromebook Spin 11 (CP311-1H & CP311-1HN)
      ASUS Chromebook C223 / C423 / C523,
      CTL Chromebook J41 / J41T,
      Chromebook NL7,
      Chromebook NL7T-360
      Dell Chromebook 11 5190, Chromebook 11 2-in-1 5190
      Lenovo 100e Chromebook, 500e Chromebook
      cyan [R70] Acer Chromebook R11 (CB5-132T / C738T / CB3-132)
      edgar [R70] Acer Chromebook 14 (CB3-431)
      elm [R72] Acer Chromebook R13 (CB5-312T)
      eve [R69] Google Pixelbook
      fizz [R69] Acer Chromebox CXI3
      ASUS Chromebox 3
      CTL Chromebox CBx1
      HP Chromebox G2
      ViewSonic NMP660 Chromebox
      hana [R72] Lenovo N23 Yoga
      kefka [R70] Dell Chromebook 11 Model 3180 / 3189
      kevin [R69] Samsung Chromebook Plus
      nami [R69] Acer Chromebook 13 (CB713-1W ),
      Chromebook Spin 13 (CP713-1WN-53NF)
      Dell Inspiron 14 2-in-1 7486
      HP x360 14
      Lenovo Yoga C630
      nautilus [R69] Samsung Chromebook Plus (V2)/(LTE)
      nocturne [R70] Google Pixel Slate
      pyro [R69] Lenovo Thinkpad 11e Chromebook (4th Gen),
      Thinkpad Yoga 11e Chromebook (4th Gen)
      reef [R69] Acer Chromebook Spin 11 (R751T / CP511)
      ASUS Chromebook C213NA
      reks [R70] Lenovo N22 (Touch) Chromebook,
      N23 Chromebook,
      N23 Chromebook (Touch),
      N42 (Touch) Chromebook
      relm [R70] Acer Chromebook 11 N7 (C731 / CB311)
      CTL NL61 Chromebook
      Edxis Education Chromebook
      HP Chromebook 11 G5 EE
      Mecer V2 Chromebook
      Positivo Chromebook C216B
      sand [R69] Acer Chromebook 15 (CB515-1HT/1H)
      scarlet [?] Acer Chromebook Tab 10 (D651N / D650N)
      snappy [R69] HP Chromebook 11 G6 EE,
      Chromebook 14 G5,
      Chromebook x360 11 G1 EE
      setzer [R70] HP Chromebook 11 G5,
      Chromebook 11-vxxx
      soraka [R69] HP Chromebook x2
      terra [R70] ASUS Chromebook C202SA,
      Chromebook C300SA/C301SA
      ultima [R70] Lenovo ThinkPad 11e Chromebook 3rd Gen (Yoga/Clamshell)
      wizpig [R70] CTL J5 Chromebook
      Edugear CMT Chromebook
      Haier Convertible Chromebook 11 C
      Multilaser M11C Chromebook
      PCMerge Chromebook PCM-116T-432B
      Prowise ProLine Chromebook
      Viglen Chromebook 360

  • @pinkllama12345
    @pinkllama12345 2 ปีที่แล้ว +2

    Thanks for your help! Although, I do have a slight problem. At the part where you type pip3 install numpy it said that pip3 was not found and it was a error! Great video though :)

    • @apm
      @apm  2 ปีที่แล้ว

      Try the following: python3 -m pip install numpy

    • @parkersummers1287
      @parkersummers1287 2 ปีที่แล้ว

      And if you get an error try again with sudo

  • @adalgissarodriguez1715
    @adalgissarodriguez1715 2 ปีที่แล้ว +1

    Mine says it couldn't find matplotlib, so I tried downloading it again and it says "Failed building wheel for pillow"

    • @adalgissarodriguez1715
      @adalgissarodriguez1715 2 ปีที่แล้ว +1

      Nevermind, I found online that I had to update pip and install Pillow, whatever that jargon means lol

  • @kuro1977
    @kuro1977 3 ปีที่แล้ว +1

    I downloaded all the package but when i wanna show the plot it said that i have no module named matplotlib. ples help me

    • @apm
      @apm  3 ปีที่แล้ว

      There may have been an error when you installed matplotlib. Try it again to see if there is an error with: pip install matplotlib

  • @Oropher420
    @Oropher420 4 ปีที่แล้ว +2

    I'm stuck specifically at 9:20; I run 'python3 test.py' and it comes up with this
    Traceback (most recent call last):
    File "test.py", line 4, in
    x = np.linspace(0.2*np.pi)
    File "", line 4, in linspace
    TypeError: _linspace_dispatcher() missing 1 required positional argument: 'stop'

    • @apm
      @apm  3 ปีที่แล้ว

      Try this instead: x = np.linspace(0,2*np.pi) with a comma instead of a period.

    • @Oropher420
      @Oropher420 3 ปีที่แล้ว

      @@apm okay now it came up with this;
      Traceback (most recent call last):
      File "test.py", line 4, in
      x = np.linspace(0,2*ni.pi)
      NameError: name 'ni' is not defined

    • @apm
      @apm  3 ปีที่แล้ว +1

      @@Oropher420 it is x = np.linspace(0,2*np.pi) not x = np.linspace(0,2*ni.pi)

    • @Oropher420
      @Oropher420 3 ปีที่แล้ว

      @APMonitor.com I tried it out on a different software and it worked!

    • @insafkasdi8100
      @insafkasdi8100 3 ปีที่แล้ว

      @@Oropher420 i have the same issue but i dont know how to fix it;(

  • @bwp2bruce
    @bwp2bruce 5 ปีที่แล้ว +11

    You need to improve your screen presentation because I could barely see but you helped me install python. I was lost for hours before finding this video. Thanks

    • @apm
      @apm  5 ปีที่แล้ว +1

      One thing to try is to put the setting at 1080p. If you have a slower internet connection, TH-cam will pause to buffer until the data can be downloaded. I normally don't record a video of my screen but do screen capture. I'm glad it helped.

    • @bwp2bruce
      @bwp2bruce 5 ปีที่แล้ว

      @@apm Has nothing to do with my settings. Its your settings that need adjusting

    • @apm
      @apm  5 ปีที่แล้ว +1

      @@bwp2bruce I agree that this isn't the best video because I couldn't get screen recording software for the Chromebook that I liked so I just took a 1080p cell phone video. I'll try to work out something better in the future.

    • @WalterMan
      @WalterMan 5 ปีที่แล้ว

      @@apm I use *Screencastify - Screen Video Recorder* from the chrome web store to record my screen. It works pretty good...

    • @apm
      @apm  5 ปีที่แล้ว

      @@WalterMan Thanks! I'll check it out.

  • @brianmorgan0195
    @brianmorgan0195 3 ปีที่แล้ว +2

    It doesn’t let me install matplotlib as it, “failed building wheel for pillow”. I am on an asus laptop if that means anything. Please help.

    • @brianmorgan0195
      @brianmorgan0195 3 ปีที่แล้ว +1

      Would I be better getting a new laptop with a windows operating system?

    • @apm
      @apm  3 ปีที่แล้ว

      Maybe look on StackOverflow for that specific error message. Windows, MacOS, or Linux have more options for installing Linux. Also the processors (ARM) on Chromebooks are typically much slower than other PCs that are built on x86 or 64-bit PC CPUs.

  • @shaunswinton8087
    @shaunswinton8087 4 ปีที่แล้ว +1

    I'm having issues installing matplotlib after:* pip3 install matplotlib * I runs a whole bunch half way through it says in red *failed building wheel for matplotlib* then at the bottom it has some error things

    • @apm
      @apm  4 ปีที่แล้ว

      I recommend that you post the specifics of the error message to StackOverflow. Does this answer help? stackoverflow.com/questions/36327134/matplotlib-error-no-module-named-tkinter

  • @daratash1
    @daratash1 4 ปีที่แล้ว +1

    Hello APMonitor,
    I installed some of this stuff on my son's computer thinking we can learn python together. His computer is misbehaving now. Can you tell me how I can remove what I installed. Thanks

    • @apm
      @apm  4 ปีที่แล้ว

      You can either reset the chromebook: support.google.com/chromebook/answer/183084?hl=en or you can unselect the option that enabled the Python install. I'd recommend the reset if he has backed up any files he needs.

  • @jackthomas4168
    @jackthomas4168 4 ปีที่แล้ว +2

    when i try to get mumpy it says could not install packages due to enviormenterror....

    • @apm
      @apm  4 ปีที่แล้ว

      Try "pip install numpy". If this doesn't work then I recommend that you uninstall Python and start over. Here are the latest instructions: apmonitor.com/pdc/index.php/Main/InstallPython

  • @julioguzman5925
    @julioguzman5925 5 ปีที่แล้ว +4

    Tried doing the plot chart you demonstrated. I saved the file and when I tried to test it, it says this:
    X = np.linspace (0.2*np.pi)
    TypeError: linspace() missing 1 required positional argument: 'stop'
    Kinda hard to see what you did

    • @apm
      @apm  5 ปีที่แล้ว +2

      Try x = np.linspace(0,2*np.pi) replacing the period with a comma.

  • @hella567
    @hella567 4 ปีที่แล้ว +1

    hi i'm using a pixelbook and i keep getting this message
    >>> sudo apt install python3-pip
    File "", line 1
    sudo apt install python3-pip
    ^
    SyntaxError: invalid syntax
    >>>

    • @apm
      @apm  4 ปีที่แล้ว +1

      Maybe you already have administrative privileges so you can leave off the sudo

  • @Soggie_Cat
    @Soggie_Cat 4 ปีที่แล้ว +2

    when i installed matplotlib it said it couldn´t install freetype and png

    • @apm
      @apm  4 ปีที่แล้ว

      Here is some help on that issue: github.com/matplotlib/matplotlib/issues/12169

  • @daws_j0852
    @daws_j0852 3 ปีที่แล้ว +1

    Thanks for the video!! One issue though. when i try to install netplotlib it says could not find a version that satisfies the requirement rrplugins>=2.0.3 (from tellurium>=2.1.0->netplotlib) (from versions: 1.1.6, 1.1.7, 1.1.8, 1.1.10, 1.2.0, 1.2.1, 1.2.2)
    no matching distribution found for rrplugins>=2.0.3 (from tellurium>=2.1.0->netplotlib). Do you happen to know what this is and how to fix it?

    • @apm
      @apm  3 ปีที่แล้ว

      Try the correct package name with matplotlib

  • @alialibraheemi9566
    @alialibraheemi9566 2 ปีที่แล้ว +1

    great video but i just have one error that says "ModuleNotFoundError: No module named 'matplotlib.matplot' " what should i do to get it to display the "python3 test.py "?

    • @apm
      @apm  2 ปีที่แล้ว +1

      Try matplotlib.pyplot instead

  • @edsonfernandesjunior7233
    @edsonfernandesjunior7233 2 ปีที่แล้ว +1

    Could you make a new video related to this. I'm trying to install playonlinux but I'm not able to install it just because of Python.
    It is showing this at the time of installation: Depends: python-wxgtk2.8 but it is not installable or
    python-wxgtk3.0 but it is not installable

    • @apm
      @apm  2 ปีที่แล้ว

      Some packages are not installable on ARM processors, unfortunately.

  • @notshadow6581
    @notshadow6581 4 ปีที่แล้ว +1

    when it says there will be a addinatl danload of 165 mega bites for python 3 do i say y?

    • @apm
      @apm  4 ปีที่แล้ว

      Yes.

  • @lukaklauss2196
    @lukaklauss2196 3 ปีที่แล้ว +1

    hello I tried your tutorial but at my place is marked "-bash: python: command not found" someone could help me (8:10)

    • @apm
      @apm  3 ปีที่แล้ว

      Try that command with python3 instead of just python

  • @azizsellemi3390
    @azizsellemi3390 2 ปีที่แล้ว +1

    Hey thank you for the help and the wonderful tutorial.. I didn't know how to proceed after writing import numpy in nano.. What do you press to proceed.. Thank you again

    • @apm
      @apm  2 ปีที่แล้ว

      You can use any text editor to write the script. Look up some tutorials on how to use nano or another text editor. You can use vim, nano, emacs, etc.

  • @snoco366
    @snoco366 4 ปีที่แล้ว +1

    After I wanted to run python3 test.py
    I get this error, what does it mean?
    Traceback (most recent call last):
    File "test.py", line 2, in
    import matplotlib.pylot as plt
    ImportError: No module named 'matplotlib.pylot'

    • @gregwillmott9043
      @gregwillmott9043 4 ปีที่แล้ว +1

      I think it's called matplotlib.pyplot not matplotlib.pylot

    • @snoco366
      @snoco366 4 ปีที่แล้ว +1

      @@gregwillmott9043 Thanks for the reply!

  • @Bubdolf_the_brown
    @Bubdolf_the_brown 3 ปีที่แล้ว +1

    Thanks for the very helpful video. I'm getting the following after executing the numpy installation 'The scripts f2py, f2py3 and f2py3.7 are installed in '/home/biravtarsingh/.local/bin' which is not on PATH.
    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. ' - How do i add on PATH? Thanks in advance.

    • @apm
      @apm  3 ปีที่แล้ว

      I recommend using "pip install numpy" instead of trying to compile it from source. This should put it in your Lib/ folder where you have python installed. You can use "which python" to find your Python directory.

  • @andrewboyle2831
    @andrewboyle2831 2 ปีที่แล้ว +1

    Can't find limit data on my google chrome it did not appear under settings?

    • @apm
      @apm  2 ปีที่แล้ว

      Computers and Chromebooks
      Use the Data Saver extension (requires Chrome version 48 or higher)
      Install the Data Saver extension from the Chrome Web Store.
      Data Saver should be turned on by default. If it's not, click Turn On Data Saver.

  • @kevinjasarovski9828
    @kevinjasarovski9828 4 ปีที่แล้ว +1

    Is developer mode necessary to have turned on just to code on chromebook (would it help)

    • @apm
      @apm  4 ปีที่แล้ว

      With this method, you can install Python without developer mode. It is not required as long as your Chromebook supports this option.

  • @andrewradous1687
    @andrewradous1687 4 ปีที่แล้ว +1

    Now I have a new problem, now when a put python3 test.py, it saysTraceback (most recent call last):
    File "test.py", line 2, in
    import matplotlib.pyplot as plt
    ModuleNotFoundError: No module named 'matplotlib'.
    And when I say test.py, it gives me, -bash: test.py: command not found

    • @apm
      @apm  4 ปีที่แล้ว

      You missed the step to "pip3 install matplotlib". Here is more information on installing Python: apmonitor.com/pdc/index.php/Main/InstallPython

    • @andrewradous1687
      @andrewradous1687 4 ปีที่แล้ว

      @@apm I did that, but whenever I put in the command pip3 install matplotlib, it gives me a message saying that it failed with error code 1

  • @AndJusTIceForRob
    @AndJusTIceForRob 4 ปีที่แล้ว +1

    Linux Beta is not populating as an option under Chrome settings.

    • @apm
      @apm  4 ปีที่แล้ว

      Only certain Chromebooks support this feature. There is a comment with a link that shows all of the supported versions.

  • @leonheavyside4245
    @leonheavyside4245 2 ปีที่แล้ว +1

    Hi. My Linux development environment is greyed out. How do I fix this? I am the administrator of my gsuit account.

    • @rrc
      @rrc 2 ปีที่แล้ว

      Some devices do not allow the Linux development environment. What is your device?

  • @yaenirmorsa6710
    @yaenirmorsa6710 4 ปีที่แล้ว +1

    i got this error back and i dont know what it means because i followed every installation and they were working fine:
    File "mandel.py", line 1, in
    import numpy as np
    ImportError: No module named numpy

    • @apm
      @apm  4 ปีที่แล้ว

      Try to install numpy again.

  • @mattl5387
    @mattl5387 3 ปีที่แล้ว +1

    After I did python3 test.py it says that matplotlib is currently usingagg, which is non gui-backend, so cannot show figure,
    plt.show()
    Help

    • @apm
      @apm  3 ปีที่แล้ว

      Try adding tkinter with "sudo apt-get install python3-tk"

    • @mattl5387
      @mattl5387 3 ปีที่แล้ว +1

      @@apm Thanks it works great now

  • @hellohi1453
    @hellohi1453 4 ปีที่แล้ว +1

    Hi, if you cannot locate the Linux control in Chrome Settings it may been in the OS settings, it was there for my Lenovo Chromebook.
    I do have a syntax error with the "sudo apt install python3-pip" command. Would you be able to know why?

    • @apm
      @apm  4 ปีที่แล้ว +1

      Thanks for the tip. What is the syntax error?

    • @hellohi1453
      @hellohi1453 4 ปีที่แล้ว

      @@apm Well, I restarted the Chromebook and tried again, and I got this:
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-j1k7hcxw/matplotlib/

    • @apm
      @apm  4 ปีที่แล้ว +1

      @@hellohi1453 try "pip install --upgrade setuptools" or "sudo pip install --upgrade setuptools" Here are some other tips: github.com/googleapis/google-cloud-python/issues/3884

  • @dansmith1721
    @dansmith1721 4 ปีที่แล้ว +1

    when I entered "sudo apt install python3-pip" it said syntax error? someone help

    • @apm
      @apm  4 ปีที่แล้ว +1

      Maybe try to update first before the pip install: askubuntu.com/questions/778052/installing-pip3-for-python3-on-ubuntu-16-04-lts-using-a-proxy

  • @Momotaro6513
    @Momotaro6513 5 ปีที่แล้ว

    I followed the instructions but mine just continues to say that python3-pip has not been located. Does anyone know what I should do?

    • @apm
      @apm  5 ปีที่แล้ว

      Please try:
      sudo apt install python3-pip
      Here is the exact spot in the instructions: th-cam.com/video/91OBWQexp0E/w-d-xo.html
      Make sure you are connected to the Internet. Once you have installed it, you can locate it with:
      locate pip3

  • @zoeh2021
    @zoeh2021 4 ปีที่แล้ว +1

    Thanks for the video! I'm sorry but I'm not fluent in English, you may have told it in the video but I just didn't understand, once you have written all these commands and exit the page, how can we find the python software in the computer in order to use it?

    • @apm
      @apm  4 ปีที่แล้ว +1

      You can create a text file such as myProgram.py and then run it from the terminal with: python3 myProgram.py If you want to run interactively, just open a terminal and type: python3 or python

    • @apm
      @apm  4 ปีที่แล้ว +1

      To exit python type: exit()

  • @Dragoon4U
    @Dragoon4U 3 ปีที่แล้ว +3

    how do i open it to code in it? you might have said it i probobaly missed it

    • @apm
      @apm  3 ปีที่แล้ว

      You create a text file with a .py extension and then run it from the command line. You can use Google Colab if you need a Jupyter Notebook that is more similar to a traditional IDE.

  • @mylesadams4061
    @mylesadams4061 3 ปีที่แล้ว +1

    after i tested python3 test.py it said : "AttributeError: module 'numpy' has no attribute 'p1'" , what can i do?

    • @apm
      @apm  3 ปีที่แล้ว

      You may have mistyped something. Sorry that the video quality makes it hard to read.

    • @mylesadams4061
      @mylesadams4061 3 ปีที่แล้ว +1

      @@apm you can use a download of Nimbus recorder for the chrome book.

    • @apm
      @apm  3 ปีที่แล้ว

      @@mylesadams4061 Thanks for the tip.

  • @milomms4869
    @milomms4869 4 ปีที่แล้ว

    it says
    File "", line 1
    sudo apt install python3-pip
    when i try to install python-3

    • @apm
      @apm  4 ปีที่แล้ว

      Are you issuing the command from a command prompt?

  • @GoldenTV211
    @GoldenTV211 3 ปีที่แล้ว +1

    5:18 when i entered ''pip3 install matplotlib'' it gave me code error 1 but i dont know what it means. what am i supposed to do??

    • @apm
      @apm  3 ปีที่แล้ว

      Try searching for the error on StackOverflow.

    • @GoldenTV211
      @GoldenTV211 3 ปีที่แล้ว

      @@apm ok thanks

  • @ryderhornsby1055
    @ryderhornsby1055 4 ปีที่แล้ว

    when I typed in sudo apt pyhton3-pip it said it was unable to locate package python3-pip

    • @apm
      @apm  4 ปีที่แล้ว +1

      Try python3-pip instead of pyhton3-pip

  • @1rom11
    @1rom11 2 ปีที่แล้ว +1

    Is there any way to install python3 but in crosh (crOS shell)

    • @apm
      @apm  2 ปีที่แล้ว

      Not sure. Maybe try these same commands and report back what happens?

  • @mrtophat7154
    @mrtophat7154 3 ปีที่แล้ว +1

    When I do python3 test.py it says:
    Traceback (most recent call last):
    File "test.py", line 2, in
    import matplotlib.plyplot as plt
    ModuleNotFoundError: No module named 'matplotlib.plyplot'

    • @apm
      @apm  3 ปีที่แล้ว

      You just misspelled pyplot. Try this instead: import matplotlib.pyplot as plt

    • @mrtophat7154
      @mrtophat7154 3 ปีที่แล้ว +1

      @@apm thanks!

  • @YTKained
    @YTKained 5 ปีที่แล้ว +1

    I dont have this option, could I have a old chromebook - Version 72.0.3626.122 (Official Build) (64-bit)?

    • @apm
      @apm  5 ปีที่แล้ว

      Correct. This approach only works with specific models of new Chromebooks.

    • @YTKained
      @YTKained 5 ปีที่แล้ว

      APMonitor.com, just read about being able to switch channels, am using the stable channel. Might the beta channel work?

    • @apm
      @apm  5 ปีที่แล้ว

      @@YTKained - a beta channel could work although I haven't tried it myself. There are also options to load Linux although you can inadvertently wipe out the installation and reload the default image by hitting the space bar during boot.

  • @nabeelfarooq3573
    @nabeelfarooq3573 3 ปีที่แล้ว +1

    mine says TypeError: _linspace_dispatcher() missing 1 required positional argument after i did the python3 test.py can someone help

  • @bovinththe2nd277
    @bovinththe2nd277 4 ปีที่แล้ว +1

    At 8:20 what is the character /letter on the left side of S?

    • @apm
      @apm  4 ปีที่แล้ว

      It is the command prompt $ that appears automatically with each new line. To save the file in nano type ctrl-x and then y to save and exit.

  • @HOLYFigureInHeavensMirrors
    @HOLYFigureInHeavensMirrors 4 ปีที่แล้ว +1

    but i still dont know how you installed linux beta cause like i have acer chromebook 11 and i have the latest update can one of u guys please tell me what u did?

    • @apm
      @apm  4 ปีที่แล้ว

      Some versions of Chromebook don't support this. You may need to use Developer mode and load a Linux Operating System.

    • @HOLYFigureInHeavensMirrors
      @HOLYFigureInHeavensMirrors 4 ปีที่แล้ว

      @@apm well i tried that but when i log out everything i do in kali doesnt get autosave like everything i install is not installed no more and my chromebook version is C730

  • @namansharma332
    @namansharma332 3 ปีที่แล้ว +3

    Ok so I did all of this but how do I code now. Pls somebody help. And also what is that line chart thing every time I open test.py.
    Pls help

    • @apm
      @apm  3 ปีที่แล้ว

      You need to create a new text file and name it as myProgram.py with the .py extension. Then you run it with "python myProgram.py" from the command line.

    • @namansharma332
      @namansharma332 3 ปีที่แล้ว +1

      @@apm Now I did that and it just opens that line graph flowchart thing again.9:29 this one.

    • @apm
      @apm  3 ปีที่แล้ว

      @@namansharma332 you can now change test.py to be whatever you would like to put in that program.

    • @samueltilahun66
      @samueltilahun66 3 ปีที่แล้ว +1

      You can also install other text editors like atom and VS CODE

    • @apm
      @apm  3 ปีที่แล้ว

      @@samueltilahun66 those are very nice options.

  • @victorgonzalez-cortez8349
    @victorgonzalez-cortez8349 5 ปีที่แล้ว

    My plot doesn’t show up after entering python3 test.py after following your stepts. Please help

    • @apm
      @apm  5 ปีที่แล้ว

      Did you try plt.show()?

  • @franklinmaradiaga2401
    @franklinmaradiaga2401 3 ปีที่แล้ว +1

    Hey! I have a question. Im confused because after installing numpy, it says that is not on PATH, and I have no idea on how to add it to PATH. Can you please help me with this, I'm a beginner and I dont want this to affect me in the future.

    • @apm
      @apm  3 ปีที่แล้ว

      There was probably a problem with the install. I recommend that you uninstall and start over, looking for any error messages as you go. Here is some additional help: stackoverflow.com/questions/7712326/broke-my-python-build-while-adding-numpy

    • @franklinmaradiaga2401
      @franklinmaradiaga2401 3 ปีที่แล้ว +1

      @@apm thank you! I have another question, how do you use or open python on chromebooks? Im still confuse, I'm taking a course of Python but i dont know where to write the codes.

    • @apm
      @apm  3 ปีที่แล้ว +1

      @@franklinmaradiaga2401 python is written as a text file. You save the text file with a .py extension and then run your program from the command line with "python myProgram.py". Alternatively, you can run from a Jupyter notebook on Google Colab in a web browser: colab.research.google.com

    • @franklinmaradiaga2401
      @franklinmaradiaga2401 3 ปีที่แล้ว

      @@apm Thank you! I'll do that.

  • @Slyruin
    @Slyruin 4 ปีที่แล้ว +2

    I have an issue I dot know how to get back out after the gnu nano thing

    • @Slyruin
      @Slyruin 4 ปีที่แล้ว +1

      Got it

    • @apm
      @apm  4 ปีที่แล้ว

      To exit nano, hold down the Ctrl key and press the x key (a combination called ctrl + x)

  • @demaelya9740
    @demaelya9740 4 ปีที่แล้ว

    Hii i followed your instructions but at 5:28, i typed pip3 install numpy but i got error1 or something

    • @apm
      @apm  4 ปีที่แล้ว

      What was your error? Could you copy it into the comments or else search for it online? If you don't have admin privilege then you may need to add --user to that command.

  • @dobbins5943
    @dobbins5943 3 ปีที่แล้ว +1

    why is it so difficult?? i just got a laptop to code and i used to do it on a windows and did not have to go through all of this confusion...regretting my purchase honestly

    • @apm
      @apm  3 ปีที่แล้ว

      Try Google Colab.

  • @Rover2724
    @Rover2724 4 ปีที่แล้ว +1

    Hey you're video is great and really helpful so far but I've run into a problem, I used the "python3 test.py" command but I'm getting a message saying "TypeError: _Linspace_dispatcher( ) missing 1 required positional argument: 'stop' " any idea on what it could be or how to fix ?

    • @apm
      @apm  4 ปีที่แล้ว

      try this: x = np.linspace(0,10)

    • @valeriarocha8898
      @valeriarocha8898 4 ปีที่แล้ว +1

      @@apm Hey, thanks for the video it's really helpful but I ran into the same problem as above so I used the text that you provided and now it's showing -bash: syntax error near unexpected token `(' could you help with this?

    • @apm
      @apm  4 ปีที่แล้ว

      @@valeriarocha8898 at 7:47 could you try x=np.linspace(0,13) instead? Maybe there is a change in using np.pi.