简体   繁体   English

Python 模块在 macOS Catalina 更新后不工作

[英]Python modules not working after macOS Catalina update

After updating macOS to Catalina, I can no longer import modules like Pandas, Numpy or Scipy--I get a ModuleNotFoundError .将 macOS 更新到 Catalina 后,我无法再导入 Pandas、Numpy 或 Scipy 之类的模块——我得到一个ModuleNotFoundError Interestingly, import os and import sys do not throw this error.有趣的是, import osimport sys不会抛出这个错误。

Does anyone know why this is and how to fix it?有谁知道这是为什么以及如何解决?

Thanks谢谢

Probably after update you have another default Python interpreter.可能在更新后你有另一个默认的 Python 解释器。

You either should find where "the old one" is located or install again all libraries needed (eg pip install pandas )您要么应该找到“旧的”所在的位置,要么重新安装所有需要的库(例如pip install pandas

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM