Install (and uninstall) ANY Python version on Linux

Поділитися
Вставка
  • Опубліковано 7 жов 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

КОМЕНТАРІ • 25

  • @Carberra
    @Carberra  2 роки тому +2

    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 (:

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

    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.

    • @Carberra
      @Carberra  Рік тому +2

      Glad it helped you out! You'd think they'd actually make this easy themselves but I guess we can't have everything lmao.

  • @JDMorris81
    @JDMorris81 2 місяці тому

    Awesome, going to try this. Thank you sir

  • @anxietyshinz
    @anxietyshinz 18 днів тому

    Thank you sir for this and I like how u explained it...

  • @Zadrakos
    @Zadrakos 5 місяців тому +1

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

  • @theookamikit
    @theookamikit 3 місяці тому

    thank you!

  • @TAHyron
    @TAHyron 7 місяців тому

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

  • @Chewbaccawheel
    @Chewbaccawheel Місяць тому

    error: no acceptable C compiler found in $PATH

  • @vic.diyarx
    @vic.diyarx 4 місяці тому

    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.

  • @emreozbek6770
    @emreozbek6770 Місяць тому

    python --version doesn't detect it

  • @legion1159
    @legion1159 3 місяці тому

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

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

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

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

      I personally have never gotten along with tools like that. That is another option though, yeah.

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

    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.

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

      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.

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

    Uninstall script 9:35

  • @GodrickTheGrafted123
    @GodrickTheGrafted123 5 місяців тому

    Fuck it I ain't doing all that

  • @TheGhost-zv3it
    @TheGhost-zv3it Рік тому

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

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

      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.

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

      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!

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

    fernando@raspberrypi:~ $ install-python 3.1.1
    bash: install-python: command not found

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

      Had same problem,solved using this.
      ./install-python 3.1.1

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

      @@ketangaikwad4279 i will try it later, thank youuu