pandas - Glue 与 Pandas 一起使用,基于文档
问题描述
根据文档,我正在尝试让 Pandas 工作?
在他们提到的 Python Shell 作业支持的库列表下:
pandas(需要通过 python setuptools 配置 setup.py 安装)
我已经用安装文件试过了
from setuptools import setup
setup(
name="dependecy_package",
version="0.1",
packages=['pandas','shapely','psycopg2','s3fs'],
package_dir = {'': '/home/user/.local/lib/python3.6/site-packages'}
)
我上传了这个生成的 egg 文件并上传到 S3。然后,我将新的 ex 文件作为运行作业设置的一部分进行引用。但是,我在启动时收到此错误
ImportError: C extension: No module named 'pandas._libs' not built.
If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
我该如何解决?
解决方案
推荐阅读
- docker - 使用 Entrypoint 和/或 CMD 作为 docker 文件的一部分运行 mvn 命令
- python - 可赎回债券的 OAS Quantlib
- python - Trans_btn.place(x=490, y=180) 未在 Visual Studio 代码中从此代码中定义
- python - 创建 AWS S3 存储桶时,区域 None 是什么意思?
- reactjs - 如何在 Enter 按键上切换 React-Bootstrap 手风琴?
- javascript - 仅使用 CSS 将容器 div 的大小自动调整为其中的 img 元素的尺寸?
- html - 替代标签?这个图像是装饰性的还是应该有一个 Alt 标签?
- typescript - 如何使用 useState 更新组件?
- mysql - 只有当年份与 MySQL 相同时,如何对月份进行分组?
- python - kivy ToggleButton :如何触发状态更改的方法?