首页 > 解决方案 > 无法为 pyarrow 构建 egg 文件

问题描述

问题:

无法为 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

标签: pythonpython-3.xcmakeaws-gluepyarrow

解决方案


此错误意味着您尚未cmake在系统上安装。正如您在 macOS 上一样,您可以使用 Homebrew 通过brew install cmake.

一般来说,你不应该使用创建 egg 文件,pyarrow而是使用轮子,因为 egg 被认为是不推荐使用的。


推荐阅读