Install (and uninstall) ANY Python version on Linux

preview_player
Показать описание
On Linux, the hardest part of using Python is really in the installation. Sure, you can use the repos, but they tend to be out of date, and you're desperate to get the newest features *now*. Enter: Bash scripting. Oh yeah.

The repo with the scripts:



If you enjoy my content, consider supporting me on Patreon (or hit the JOIN button below to become a member)!

If you need help with anything, feel free to join the Discord server:

I get a lot of people asking, so here's my Visual Studio Code setup!



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto
Рекомендации по теме
Комментарии
Автор

Just a note: currently the installation script is set to use the apt package manager -- I'm planning to change this to dynamically use one, but in the meantime, you'll just have to edit the script for your needs (:

Carberra
Автор

thanks, this helped me out a lot. all the other places had very complex answers that went over my head whereas yours was super easy to follow along.

abishkarmahat
Автор

thanks, very useful
But i got an error form the script, it can't install SSL module on python 3.10.13

TAHyron
Автор

Are you ever going to update this to work with any package manager or at least pacman? It's been a year dude.

Zadrakos
Автор

Hello, thank you very much for your excellent and practical training, but I have a problem that I struggled with a lot and tested many ways and methods, but it still hasn't been solved. Please help me if you can. When I execute the command sudo apt-get install python, it gives me an error and says command not found and no matter what I do, it does not allow me to install. I have even tried to use other libraries to install Python, but still, even though Python I have also installed and currently Python is inside the files folder of my computer, again in the terminal environment, when I run a Python command, it gives me an error. Needless to say, I have Python 3 and Python 2 installed without any problem, but Python Even though it is on the system, I cannot use the statements that are executed using Python, and it gives me the command not found python error.

fhqwdiy
Автор

while I thought it would be very convenient, I don't think it's working for me.

It's taking more than 15 minutes after the initial "configuring packages" (followed by asking for password). Is this normal? I don't think it should take so long.

LetsSink
Автор

install-python 3.9.19 - install-python: command not found

legion
Автор

Why not just use pyenv for this? Also makes managing multiple versions a breeze.

FransjeFranchise
Автор

source .bashrc
Command 'shopt' not found, did you mean:
command 'shout' from deb libshout-tools
why this error?

TheGhost-zvit
Автор

bash: install-python: command not found

fernandofgg