Install (and uninstall) ANY Python version on Linux
HTML-код
- Опубликовано: 11 сен 2024
- 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:
github.com/par...
-
If you enjoy my content, consider supporting me on Patreon (or hit the JOIN button below to become a member)!
patreon.carber...
If you need help with anything, feel free to join the Discord server:
discord.carber...
I get a lot of people asking, so here's my Visual Studio Code setup!
• My Visual Studio Code ...
-
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 (:
Awesome, going to try this. Thank you sir
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.
Glad it helped you out! You'd think they'd actually make this easy themselves but I guess we can't have everything lmao.
Are you ever going to update this to work with any package manager or at least pacman? It's been a year dude.
I 2nd this. HELPPPP USSSS lol
thanks, very useful
But i got an error form the script, it can't install SSL module on python 3.10.13
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.
install-python 3.9.19 - install-python: command not found
error: no acceptable C compiler found in $PATH
python --version doesn't detect it
thank you!
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.
Likely not, though that might be package upgrades, which should only need to happen the first time. If you're installing older of versions of Python (I think 3.8 and older), it takes significantly longer. It asks for password if it's taken a long time on the previous step, cos the sudo only lasts so long.
Why not just use pyenv for this? Also makes managing multiple versions a breeze.
I personally have never gotten along with tools like that. That is another option though, yeah.
Uninstall script 9:35
Fuck it I ain't doing all that
source .bashrc
Command 'shopt' not found, did you mean:
command 'shout' from deb libshout-tools
why this error?
Sounds like an error within your bashrc file -- I'm not sure what's in it so can't help beyond that. My guess would be to just remove that line.
Not sure if this is still relevant for OP, but I also had this issue and can confirm that removing all instances of "shopt" from .bashrc fixed the problem!
fernando@raspberrypi:~ $ install-python 3.1.1
bash: install-python: command not found
Had same problem,solved using this.
./install-python 3.1.1
@@ketangaikwad4279 i will try it later, thank youuu