【发布时间】:2019-09-15 00:02:48
【问题描述】:
我尝试使用推荐的 pip install koalas 安装 Databricks 的新 koalas 软件包,但在 pyarrow 安装时失败。
然后我安装了pyarrow 并重试了koalas,但在pyarrow 上仍然失败。我访问了the Github page,它告诉我:
如果这无法安装 pyarrow 依赖项,您可能需要尝试 使用 Python 3.6.x 安装,因为 pip install 箭头不起作用 3.7 https://github.com/apache/arrow/issues/1125 的盒子。
我搜索了讨论,无法理解“解决方案”,也许是因为没有任何解决方案。我正在使用 Python 3.7.3。我得到的错误信息是:
creating build/temp.macosx-10.7-x86_64-3.7
-- Runnning cmake for pyarrow
cmake -DPYTHON_EXECUTABLE=/anaconda3/bin/python -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release /private/tmp/pip-install-uhdr9agf/pyarrow
unable to execute 'cmake': No such file or directory
error: command 'cmake' failed with exit status 1
----------------------------------------
Failed building wheel for pyarrow
Running setup.py clean for pyarrow
Failed to build pyarrow
Installing collected packages: pyarrow, koalas
Found existing installation: pyarrow 0.13.0
Uninstalling pyarrow-0.13.0:
Successfully uninstalled pyarrow-0.13.0
Running setup.py install for pyarrow ... error
Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-uhdr9agf/pyarrow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-i7k4nwil/install-record.txt --single-version-externally-managed --compile:
...
-- Runnning cmake for pyarrow
cmake -DPYTHON_EXECUTABLE=/anaconda3/bin/python -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release /private/tmp/pip-install-uhdr9agf/pyarrow
unable to execute 'cmake': No such file or directory
error: command 'cmake' failed with exit status 1
----------------------------------------
Rolling back uninstall of pyarrow
...
Command "/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-uhdr9agf/pyarrow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-i7k4nwil/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-uhdr9agf/pyarrow/
我已经尝试过pip install koalas、sudo pip install koalas 和sudo -H pip install koalas,并且都有相同的错误消息。
有没有人找到解决这些错误的方法?还是考拉不(还)与 3.7 兼容?
【问题讨论】:
-
即使我用 Python 3.7 尝试过,它也不起作用。它归结为箭头依赖性并且不会安装。虽然适用于 3.6
标签: python pandas pyspark databricks pyarrow