46

I learned some fun things today!

Fun fact! A lot of things rely on python!
Fun fact! Python relys on a lot of things!
Fun fact! Updating just python and nothing else causes your entire fucking arch to break! ... Wait that's not fun. Shit!

FML.

Comments
  • 6
    One of the many ridiculously easy ways to fuck up your system!
  • 3
    @irene @davenall yea I'm aware. I tried to do it the real way but a dependency error occurred "no packages upgraded" so I was like "ehh, I'll track that down later. Do a real update. But I need python3 right now, so I'll do that first real quick, finish this task and then debugging."

    Turns out debugging happened sooner than I thought. Immediately actually.
  • 2
    @Charon92 yea but they aren't compatible entirely. Python2 was fine and I needed specifically python3 which was a bit outdated.
  • 2
    @deadPix3l Isn't python3 available directly as "python" in the Package Manager?

    Or is it different for me on Manjaro?

    Why "python3" specifically?
  • 2
    @JohnScott I believe so. Some (most) distros "python is python2, but on arch "python" is python3.

    What doesn't change is that python2 and python3 are always available under those names. So I just like to be explicit to prevent confusion
  • 1
    @deadPix3l Seems a bit excessive as far as I can tell.

    Because when I need to pip install dependencies. I usually end up having to install pip.

    And when my code doesn't work I usually end up having to run python cli.

    And then I read which version it is.

    And then if be destro decides the default is python2. I have to install pip2 for python2 and then install pip3 for python3.

    And only after that can I install my pip dependencies.

    And then I update pip2 and pip3 just for good measure.
  • 0
    I never update python, the headache is impossible to handle it! XD
  • 1
    Isn't that why you should use pip-env or conda, ...?
  • 1
    @JohnScott I'll be honest I couldn't follow that.

    Both versions are good. It's just easier to not worry about which is the default on a given system, especially since I move systems a lot! It's just easier to think "I need this feature, that's a python3 feature/ that feature worked differently on python2/this script has print statements with parens. So I'll run pythonX"

    Rather than "this is a python 3 script. Python! Wait didn't work. Dafuq? Python -v. Oh wrong version. Python3. Cool works."

    Just seems unnecessary.
  • 0
    @wholl0p I've been wanting to learn that but it wasn't covered in my Windows based Python Class
  • 0
    @deadPix3l Meh, fair enough.
Add Comment