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 - Наука та технологія
Thank you! It's feels like a breath of fresh air to see actually useful content on youtube.
i liked your voice, and what a pleasure to just follow a tutorial and everything works.... thanks.
This is legitimately the best video to do with Linux ever. (this saved me years)
Thank you so much sir, it save me a lot of time using this one!
Exactly what I needed, thanks!!!
excellent work and very well explained.
Thanks! Very informative and helpful!
The video is very useful. Please improve the quality of the audio. The volume is low otherwise it's smooth.
Amazing. Thank you so much.
thank helped me alot :)
Best video in detail
Great tip!
You're a boss man
You Rock!!
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
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?
Thx : )
thanks
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!
I keep getting the error zipimport.ZipImportError: can't decompress data; zlib not available
when trying to install pip for the python verions.
Hi David, looks like you don't have the zip library installed, trying first installing with this... sudo apt install zlib1g-dev
I followed this procedure but when i try to switch python following error occurs update-alternatives: error: no alternatives for python3
I have both versions now. how to set one specific version permanently? Switching method is not working for me. Please answer.
my cap of tea is empty but installation process in video still running :)))
my sudo update-alternative had an error
sudo: update: command not found
This is an amazing video. Helped me a lot.
but can somebody help me know how to uninstall the alternative older version.
my sudo update-alternative had an error
sudo: update: command not found
plz help bro
Best video to downgrade thank you!
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
thanks!
Question, any workaround to remove any python that we install manually?
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
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
Hey mate, try it with sudo
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.
same problem
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
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!
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 ?
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
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:
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
Hi Akubakar, describe the specific issues you are seeing and I'll help you out. What error messages or limitations are you facing?
will pip also follow into the python version?
Thanks for the video but pip is not working. Could you please guide me in this regard.
This vid will fix pip for you... ua-cam.com/video/B8ImmR2GfYQ/v-deo.html
I'm unable to install pip.
install pip using... sudo apt install python3-pip -y
@@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'
probably would get more views if you cut out the bs