this post was submitted on 07 Oct 2024
33 points (94.6% liked)

Python

6375 readers
80 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
top 2 comments
sorted by: hot top controversial new old
[โ€“] 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.