【问题标题】:Couldn't build egg file for pyarrow无法为 pyarrow 构建 egg 文件
【发布时间】:2019-07-03 09:57:05
【问题描述】:

问题:

无法为 pyarrow 构建 egg 文件,尝试使用 0.12.1 和 0.13 版本的 pyarrow。如果我遗漏了什么,您能帮我理解吗?

$ python setup.py bdist_egg

日志跟踪:

running bdist_egg
running egg_info
writing entry points to pyarrow.egg-info/entry_points.txt
writing top-level names to pyarrow.egg-info/top_level.txt
writing requirements to pyarrow.egg-info/requires.txt
writing pyarrow.egg-info/PKG-INFO
writing dependency_links to pyarrow.egg-info/dependency_links.txt
reading manifest file 'pyarrow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '#*' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
no previously-included directories found matching '.asv'
writing manifest file 'pyarrow.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-x86_64/egg
running install_lib
running build_py
copying pyarrow/_generated_version.py -> build/lib.macosx-10.6-x86_64-3.5/pyarrow
running build_ext
-- Running cmake for pyarrow
cmake -DPYTHON_EXECUTABLE=/Users/pratheek/egg_test/bin/python  -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release /Users/pratheek/Downloads/pyarrow-0.12.1
unable to execute 'cmake': No such file or directory
error: command 'cmake' failed with exit status 1

错误:

error: command 'cmake' failed with exit status 1

【问题讨论】:

    标签: python python-3.x cmake aws-glue pyarrow


    【解决方案1】:

    此错误表示您的系统上没有安装cmake。在 macOS 上,您可以使用 Homebrew 通过brew install cmake 安装它。

    一般来说,您不应该从pyarrow 构建egg 文件,而是应该使用轮子,因为egg 被视为已弃用。

    【讨论】:

    • 我构建 pyarrow egg 的原因是在 AWS Glue Python Shell Job 中使用 pyarrow。目前,AWS Glue - Python shell 作业仅支持鸡蛋。请帮我解决这个问题
    猜你喜欢
    • 2021-11-27
    • 2022-06-10
    • 2016-11-09
    • 2020-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 2019-04-11
    相关资源
    最近更新 更多