小编Vin*_*iLL的帖子

当我尝试在 GCP 上导入 NumPy 库时,如何修复出现的 Python 错误“...无法从共享对象映射段”?

我最近开始使用 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)

shell numpy python-3.x pandas google-cloud-platform

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

google-cloud-platform ×1

numpy ×1

pandas ×1

python-3.x ×1

shell ×1