this post was submitted on 07 Oct 2024
35 points (94.9% liked)

Python

6395 readers
20 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 month ago* (last edited 1 month ago) (1 children)
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 2 points 1 month 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.