我最近开始使用 Google Cloud Platform,并在 Linux 环境中的 Cloud Shell 中运行 python 脚本。
通过运行使用 pandas 库的脚本之一,我遇到了非常令人不快的错误:
Traceback (most recent call last):
File "pandas_excercises.py", line 1, in <module>
import pandas as pd
File "/home/dann_frol/.local/lib64/python3.6/site-packages/pandas/__init__.py", line 17, in <module>
"Unable to import required dependencies:\n" + "\n".join(missing_dependencies)
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup …Run Code Online (Sandbox Code Playgroud)