Forums

Pandas fail for all scripts

This error happen whenever import pandas

 import pandas as pd
  File "/home/vinasia/.local/lib/python2.7/site-packages/pandas/__init__.py", line 18, in <module>
    raise ImportError("Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['pytz']

I also found that batteries I used for a long time suddenly not working today. It including those that I installed previously Please check

It's most probably due to the system image chage -- your account has been migrated to the "glastonbury" system image, since we decomissioned the "classic" one yesterday. You should rebuild your virtual environments. For more details, see this help page.

what is the shebang line?

!/usr/bin/env python3.9 not working

The shebang line tells bash which version of Python to run. What do you mean by "not working"?

I changed the shebag from python 2.7 to 3.9 after your upgrade but not working

Do you get an error message when you use it? Or does it run with a different Python version to the one that you expect? Or something else?