Install latest version of Python ( Python 3.12 ) on Ubuntu 22.04

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 48

  • @serhiikroshka7230
    @serhiikroshka7230 8 месяцев назад +5

    It works, but I would not recommend to set the latest version of Python the highest priority on Ubuntu OS. Some Ubuntu programs are written on this language and after restart some of them are not working properly (for example, terminal cannot be launched). You''ll need to reboot your system in safe mode (terminal version) and change the priority of Python

    • @Pryda18
      @Pryda18 7 месяцев назад

      Yes, I was just going to comment on that, the Ubuntu terminal and other applications stop working correctly. Although I'm not sure if there will be another configuration to avoid having those same errors. Greetings :')

    • @fahadkhanofficial9031
      @fahadkhanofficial9031 7 месяцев назад +1

      Hey bro,
      I changed the priority of Python highest version but it broke my terminal and now I am unable to open it. I restarted my ubuntu vm in safe mode and uninstalled the new version but I am still unable to open my terminal. Can you please reply back to my message with step by step on how to change the priority back to how it was or how to fix this issue now. I would be very thankful to you for this.

    • @businessbusiness-xd3mc
      @businessbusiness-xd3mc 6 месяцев назад


      Yes bro just reverse the process by using the nano editor by pressing Ctrl + alt + f3/f1 it will depend and the look for the /usr/bin/python3 and add python3.10 then save and quit by pressing Ctrl + X then y and exit the nano editor after that press Ctrl + Alt + F7 to go back to the GUI interface and your issue will be be solved

    • @Usama-Tanoli
      @Usama-Tanoli 6 месяцев назад

      @@businessbusiness-xd3mc so how can we use python3.12 is there any other way

    • @businessbusiness-xd3mc
      @businessbusiness-xd3mc 6 месяцев назад

      @@Usama-Tanoli You can use it but you will need to configure most of the applications besides the terminal alone so it is not recommended to upgrade to it now since it is not purely stable

  • @mayanksh219
    @mayanksh219 5 месяцев назад +2

    Thank you for clear demonstration.

    • @jameskiarie6923
      @jameskiarie6923  5 месяцев назад +2

      You are very welcome🙂. Keep it here for more Linux tutorials🤗

  • @mback12000
    @mback12000 Месяц назад

    Well done

  • @alexandruteodor3585
    @alexandruteodor3585 6 месяцев назад +1

    Thank you! I have Q4OS and I used the second method successfully.

  • @kevinnikolai8422
    @kevinnikolai8422 2 месяца назад +2

    thanks my bro, it worked here. Brazil😍😍

    • @jameskiarie6923
      @jameskiarie6923  2 месяца назад +1

      You're very welcome Kevin! Don't forget to like and subscribe to get more of these videos.

  • @tiagocruz8638
    @tiagocruz8638 7 месяцев назад

    Thank you a lot! The second method to install it is very effective. I was having some trouble trying to get the Python 3.12.0 version, but this helped me grandly.

  • @bodnarsa
    @bodnarsa 8 месяцев назад

    Dear James, I installed Python3.12.1 successfully by the second method on Debian. Thank you very much.

  • @recordable542
    @recordable542 8 месяцев назад +1

    Thanks! it works like charm

  • @user-g5rt89
    @user-g5rt89 9 месяцев назад +1

    It worked. Thanks for the video.

    • @jameskiarie6923
      @jameskiarie6923  9 месяцев назад

      Glad it helped. You are very much welcome.

  • @Ju8Sho
    @Ju8Sho 4 месяца назад +1

    thanks for the video, now how to update python to the latest version automatically
    I appreciate your knowledge🤝

  • @thierrymemel
    @thierrymemel 3 месяца назад +1

    Thanks bro
    well done!

    • @jameskiarie6923
      @jameskiarie6923  3 месяца назад

      I'm glad this worked for you. Have a nice time with your project ! Don't forget to leave a like and subscribe. 🙂

  • @user-ke6zj5br5g
    @user-ke6zj5br5g 5 месяцев назад

    05:20
    Assign priorities to multiple Python versions in system.
    sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
    sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
    sudo update-alternatives --config python3

  • @kapitankidlattv9613
    @kapitankidlattv9613 3 месяца назад +1

    Thanks, works flawlessly! One question, can I delete the installation fils?

    • @jameskiarie6923
      @jameskiarie6923  3 месяца назад

      Sure no problem! Once Python is installed, you can safely delete the files. It's a good house-keeping practice to free up disk space😊

  • @JoaoRobertoDev
    @JoaoRobertoDev 4 месяца назад +1

    Thank James

  • @aydinakbuga
    @aydinakbuga 5 месяцев назад +1

    Don't make python3.12 in priority of linux. İt causes problems in start/boot. If you already did it, in boot options menu chiose "linux advanced option" then choose "root" option to start from terminal. Then you give priority to python 3.10 again. It worked for me

    • @jameskiarie6923
      @jameskiarie6923  5 месяцев назад

      Thank you so much for your insights. I'll keep this in mind.

  • @michael-kiptoo
    @michael-kiptoo 8 месяцев назад +1

    check on timestamp write up method 2 step 6 . It should be sudo make -j 2 kindly rectify. Thanks

    • @jameskiarie6923
      @jameskiarie6923  8 месяцев назад

      Thanks man. I highly appreciate it. Looks all good now.

  • @fredericoppermann2030
    @fredericoppermann2030 Месяц назад

    Hi, the tutorial is very detailed and accurate, I managed to install Python3.12.04. Yet, I couldn't get the terminal to open any more. I had to use the virtual terminal and change the priority to the version that came with ubuntu22.04 which is Python3.10.12. Currently I use this version. Is there something that I have done wrong ? I have followed the instructions step by step yet I am not very knowledgeable on Ubuntu or Python. If someone could explain what happened, I would be very grateful.

  • @rzaabsi
    @rzaabsi 8 месяцев назад

    First of all, thank you very much
    Unfortunately, both methods did not work for me.
    The second method was executed without error until the last step, but at the end, when I checked, the Python version was the same as before!

    • @jameskiarie6923
      @jameskiarie6923  8 месяцев назад

      Could you try on a fresh Ubuntu instance and see whether that works? Thanks.

  • @amankumargupta9973
    @amankumargupta9973 6 месяцев назад +1

    Hey, thanks for the video 😀. I am currently using pop os 22.04. I have installed the latest python using deadsnakes ppa and now i want to install pip and virtualenv for python3.12. How to do it.
    I have installed pip > sudo apt install python3-pip, then upgrade it using pip install --upgrade pip.
    I have installed latest virtualenv using pip > pip install virtualenv , but it is only working for python3.10 version

    • @JC.72
      @JC.72 4 месяца назад

      its strange, as pip is giving some kind of error. why is this so complicated in today's day and age. and this is from 1 of the most popular OS and programming language... it puzzles me lol

  • @falantogan92
    @falantogan92 5 месяцев назад +1

    Hello. Thank you for your video. I jast installed Ubuntu. I am learnin Python now. Is it nessesery for me to install the latest version of Python. What do you tink?

    • @jameskiarie6923
      @jameskiarie6923  5 месяцев назад +1

      Hello there, I'd recommend working with Python 3.10 and newer versions since they will be supported much longer than older versions.

    • @falantogan92
      @falantogan92 5 месяцев назад

      @@jameskiarie6923 ty

  • @user-ke6zj5br5g
    @user-ke6zj5br5g 5 месяцев назад

    On my Ubuntu 22.04 VM after update-alternatives command Terminal shortcut in favourite apps and desktop context menu is not working. Why is it happening?

  • @dozaltay
    @dozaltay 5 месяцев назад +1

    Do you mind if I delete the downloaded and extracted file?

    • @jameskiarie6923
      @jameskiarie6923  5 месяцев назад +1

      Not at all. Once Python is installed, you can go ahead and delete it.🙂

  • @juan-tj1xf
    @juan-tj1xf 8 месяцев назад

    if i installed python with this method, then how to remove it?

  • @gl1tch405
    @gl1tch405 6 месяцев назад +1

    thanks alot