this post was submitted on 07 Oct 2024
34 points (94.7% liked)

Python

6366 readers
5 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
[โ€“] cy_narrator@discuss.tchncs.de 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

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.