Install (and uninstall) ANY Python version on Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 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 (:

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

    • @zavyaunmoore8615
      @zavyaunmoore8615 4 หลายเดือนก่อน

      I 2nd this. HELPPPP USSSS lol

  • @Chewbaccawheel
    @Chewbaccawheel หลายเดือนก่อน

    error: no acceptable C compiler found in $PATH

  • @anxietyshinz
    @anxietyshinz 14 วันที่ผ่านมา

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

  • @emreozbek6770
    @emreozbek6770 หลายเดือนก่อน

    python --version doesn't detect it

  • @JDMorris81
    @JDMorris81 2 หลายเดือนก่อน

    Awesome, going to try this. Thank you sir

  • @legion1159
    @legion1159 2 หลายเดือนก่อน

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

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

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

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

  • @GodrickTheGrafted123
    @GodrickTheGrafted123 5 หลายเดือนก่อน

    Fuck it I ain't doing all that

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

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

  • @CadZar
    @CadZar ปีที่แล้ว

    Uninstall script 9:35

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