• AccountMaker@slrpnk.net
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 year ago

    When I was first starting out my programming adventures with Python, someone told me that I should work with Python 3 instead of 2 because that’s what will be maintained in the future (this was some 8 years ago). I decided to listen and when I got home I opened up my terminal, wrote:

    sudo apt-get remove python

    Followed by

    sudo apt-get install python3

    Only to be suddenly greeted with:

    sudo: command not found

    • madeindjs@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I remember I did the same mistakes few years ago. If I’m not mistaken, there is a big warning message when you try to remove Python, no?

    • •••@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      In my days of learning Python, I was told to use pyenv and set environments based on the projects rather than making changes to the system. Maybe there are better options nowadays.

    • copylefty@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Haha I’ve done this.

      I somehow did some bash wizardry that reinstalled all the packages that were removed with python and was good to go. Nice to see someone else did the exact same thing though