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

Комментарии • 24

  • @Carberra
    @Carberra  Год назад +3

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

  • @JDMorris81
    @JDMorris81 Месяц назад +1

    Awesome, going to try this. Thank you sir

  • @abishkarmahat76
    @abishkarmahat76 Год назад +2

    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.

  • @Zadrakos
    @Zadrakos 4 месяца назад +1

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

  • @TAHyron
    @TAHyron 6 месяцев назад +1

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

  • @user-fh6qw3di3y
    @user-fh6qw3di3y 3 месяца назад

    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.

  • @legion1159
    @legion1159 2 месяца назад

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

  • @Chewbaccawheel
    @Chewbaccawheel 17 дней назад

    error: no acceptable C compiler found in $PATH

  • @emreozbek6770
    @emreozbek6770 24 дня назад

    python --version doesn't detect it

  • @theookamikit
    @theookamikit 3 месяца назад

    thank you!

  • @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.

  • @FransjeFranchise
    @FransjeFranchise Год назад +1

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

    • @Carberra
      @Carberra  Год назад +3

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

  • @CadZar
    @CadZar Год назад

    Uninstall script 9:35

  • @GodrickTheGrafted123
    @GodrickTheGrafted123 4 месяца назад

    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