Python Install - from source, multiple versions on Ubuntu and switch between versions

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • Here's a new updated version of this video, • Python Install - compi... with SSL module for pip
    I'm on Ubuntu 20.04, but the same method can be applied to previous versions of Ubuntu or Debian. This is a safe and sure way to downgrade, upgrade and switch between Python versions
  • Наука та технологія

КОМЕНТАРІ • 49

  • @viktornikolov1570
    @viktornikolov1570 11 місяців тому

    Thank you! It's feels like a breath of fresh air to see actually useful content on youtube.

  • @calcyfair4169
    @calcyfair4169 3 роки тому +2

    i liked your voice, and what a pleasure to just follow a tutorial and everything works.... thanks.

  • @BronzeBagel
    @BronzeBagel 4 роки тому +3

    This is legitimately the best video to do with Linux ever. (this saved me years)

  • @juneroyd.quinimon495
    @juneroyd.quinimon495 Рік тому

    Thank you so much sir, it save me a lot of time using this one!

  • @MrFemman
    @MrFemman 3 роки тому

    Exactly what I needed, thanks!!!

  • @m.arehman8652
    @m.arehman8652 3 роки тому

    excellent work and very well explained.

  • @gorg212
    @gorg212 2 роки тому

    Thanks! Very informative and helpful!

  • @debojyotidey3870
    @debojyotidey3870 2 роки тому +1

    The video is very useful. Please improve the quality of the audio. The volume is low otherwise it's smooth.

  • @drewfabrics
    @drewfabrics 3 роки тому

    Amazing. Thank you so much.

  • @suyeshshresthajoshi9916
    @suyeshshresthajoshi9916 2 роки тому

    thank helped me alot :)

  • @RohithSaiVemula
    @RohithSaiVemula Рік тому

    Best video in detail

  • @coolpix807
    @coolpix807 3 роки тому

    Great tip!

  • @amrtonsy4186
    @amrtonsy4186 2 роки тому

    You're a boss man

  • @lajuklengtu
    @lajuklengtu 3 роки тому

    You Rock!!

  • @silversurfer8057
    @silversurfer8057 Рік тому +1

    this path seems to lead from one problem to the next. First of all, the TLS/SSL problem, which is picked up in another video on the channel, which actually makes this one directly obsolete again. but after that is fixed it goes on: "Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError." So I wouldn't recommend following that. sorry

  • @williamli8
    @williamli8 3 роки тому

    Near the end after I configur Alternative to select 2 (for 3.7), new Terminals cannot be opened. After I configure the alternative back to 0, new Terminals are able to be opened again. Any ideas how to fix this while being able to default 2 for version 3.7?

  • @abijithbahuleyan785
    @abijithbahuleyan785 3 роки тому

    Thx : )

  • @AdeshPaul
    @AdeshPaul 3 роки тому

    thanks

  • @akshatmodi4843
    @akshatmodi4843 3 роки тому

    Hey dude,
    Amazing video, by the way, it went perfectly and my ubuntu works a treat with the newer version of python, is it possible for you to make a video or a written article on how to remove the older versions of python. Just like you, I needed python 3.7 and python 3.6, but now I do not need the python 3.6. How should I remove it? Like I want to literally remove every trace of python 3.6, and I use Ubuntu 20.04. But an amazing video, I followed it to install python 3.6 and 3.7.
    Let me know to remove the older versions.
    Cheers Mate!

  • @davidmilam415
    @davidmilam415 3 роки тому +1

    I keep getting the error zipimport.ZipImportError: can't decompress data; zlib not available
    when trying to install pip for the python verions.

    • @datyrlab
      @datyrlab  3 роки тому

      Hi David, looks like you don't have the zip library installed, trying first installing with this... sudo apt install zlib1g-dev

  • @phillipandrew3526
    @phillipandrew3526 3 роки тому

    I followed this procedure but when i try to switch python following error occurs update-alternatives: error: no alternatives for python3

  • @grilledpikachu
    @grilledpikachu 3 роки тому

    I have both versions now. how to set one specific version permanently? Switching method is not working for me. Please answer.

  • @rashsh77
    @rashsh77 3 роки тому

    my cap of tea is empty but installation process in video still running :)))

  • @sukrishgiri5748
    @sukrishgiri5748 3 роки тому

    my sudo update-alternative had an error
    sudo: update: command not found

  • @youssefchahbi8527
    @youssefchahbi8527 3 роки тому

    This is an amazing video. Helped me a lot.
    but can somebody help me know how to uninstall the alternative older version.

  • @sukrishgiri5748
    @sukrishgiri5748 3 роки тому

    my sudo update-alternative had an error
    sudo: update: command not found
    plz help bro

  • @marcelocortes6091
    @marcelocortes6091 3 роки тому

    Best video to downgrade thank you!

  • @portinho199
    @portinho199 Рік тому

    Hi bro.
    I tried that procedure 2x and both times my linux mint crashed.
    A dark screen and the mouse seens like x.
    Nothing works.
    Have you any solution for this case?
    Linux Mint 21.1 Python3.10.6 as default
    Procedure using Python3.11.1
    Thanks for your help
    Best Regards

  • @ahmadfaisolsuhaimi7458
    @ahmadfaisolsuhaimi7458 3 роки тому

    thanks!
    Question, any workaround to remove any python that we install manually?

    • @datyrlab
      @datyrlab  3 роки тому

      Hi Ahmad, you can just delete the folder from where you compiled it and it's all gone. the key configuration allowing you to do this is the compile option... altinstall. This option makes sure that you don't overwrite or interfere with your default python version. Before deleting you'd want to change your update-alternatives and bashrc environment path so your system no longer points to the version you want to delete

  • @sidraashraf3821
    @sidraashraf3821 3 роки тому

    I followed this procedure but when i try to switch python following error occurs
    update-alternatives: error: error creating symbolic link '/etc/alternatives/python.dpkg-tmp': Permission denied

    • @datyrlab
      @datyrlab  3 роки тому +2

      Hey mate, try it with sudo

  • @SumitSharanSatsangi
    @SumitSharanSatsangi 3 роки тому +1

    Thanks for this nice video, I followed it completely and it works whatever you have shown in this video, but can you tell me why pip is not working for the other version of python.

    • @ilyeshouhou9998
      @ilyeshouhou9998 3 роки тому

      same problem

    • @datyrlab
      @datyrlab  3 роки тому

      I've made a new video on how to fix the pip ssl error, ua-cam.com/video/B8ImmR2GfYQ/v-deo.html . In your case, if you already compiled then recompile with ssl enabled. First, read in the description the two chapters you must follow that I've given under recompile

    • @dannyisrael
      @dannyisrael 2 роки тому

      hmm, I don't get an ssl error, I just don't have pip module installed, yet when I try to install it it says I already have it? I'll try the video anyway :) thanks!

  • @moenshaban8825
    @moenshaban8825 3 роки тому

    i did this on Ubuntu 20.0.4.1 and i messed up my system apt doesn't broke i tried to fix from grub it didnt work , does pip work fine with this method ?

    • @datyrlab
      @datyrlab  3 роки тому

      Hey mate, the method in the video is to install from source, which i recommend if installation by apt cannot locate the python version you need from source.list. This is usually the case when things are still new and repositories are not yet updated. So, you may wish to try the easier way which is... sudo apt-get install python3.x (...x = the exact version number of your choice). It's been a few months now so updates should exist to use apt. let me know i this helps or if the issue is much deeper

  • @yashbhandaree6800
    @yashbhandaree6800 3 роки тому

    one and only best tutorial : hey i am installing latest version now can you suggest how can i update this when new update is released of python:

  • @abubakarbakhtiar874
    @abubakarbakhtiar874 3 роки тому

    Hello datyrlab,
    I tried to install python 3.6 in virtualenv as Ubuntu 20.04 has latest version of python, but I feel that somewhere the commands are not valid.
    Kindly try to install multiple versions of python this way.
    I assumed that we can restrict the chosen version in a controlled environment.
    What do you think about this.
    Kind Regards

    • @datyrlab
      @datyrlab  3 роки тому

      Hi Akubakar, describe the specific issues you are seeing and I'll help you out. What error messages or limitations are you facing?

  • @Tano0
    @Tano0 Рік тому

    will pip also follow into the python version?

  • @syedmuhammadraza1779
    @syedmuhammadraza1779 2 роки тому

    Thanks for the video but pip is not working. Could you please guide me in this regard.

    • @datyrlab
      @datyrlab  2 роки тому

      This vid will fix pip for you... ua-cam.com/video/B8ImmR2GfYQ/v-deo.html

  • @AdeshPaul
    @AdeshPaul 3 роки тому

    I'm unable to install pip.

    • @datyrlab
      @datyrlab  3 роки тому

      install pip using... sudo apt install python3-pip -y

    • @raviteja2222
      @raviteja2222 3 роки тому

      @@datyrlab pip3 working fine on 3.8.2, when switched to 3.7.5 pip is not working
      getting below error:
      Traceback (most recent call last):
      File "/usr/bin/pip3", line 6, in
      from pkg_resources import load_entry_point
      ModuleNotFoundError: No module named 'pkg_resources'

  • @joymakerRC
    @joymakerRC Рік тому

    probably would get more views if you cut out the bs