• cy_narrator@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago
    try:
        import pandas
    except:
        print("You did not install pandas, let me do it for you")
        import os
        os.system("pip install pandas")
    

    Here is some cursed error handling

    • ExperimentalGuy@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      This is beautiful, but what would be even better is to have the program open a reverse shell so you can log into the computer to install pandas manually.