我正在尝试在 Ubuntu 18 上使用 pip 安装 pyarrow。我使用的是 python 3.7
失败并显示以下消息:
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-i9sinxwj/pyarrow/build/temp.linux-x86_64-3.7
-- Finished cmake for pyarrow
-- Running cmake --build for pyarrow
cmake --build . --config release --
Scanning dependencies of target lib_pyx
[ 33%] Compiling Cython CXX source for lib...
[ 33%] Built target lib_pyx
Scanning dependencies of target lib
[ 66%] Building CXX object CMakeFiles/lib.dir/lib.cpp.o
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libarrow_python.so', needed by 'release/lib.cpython-37m-x86_64-linux-gnu.so'. Stop.
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/lib.dir/all' failed
make[1]: *** [CMakeFiles/lib.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
error: command 'cmake' failed with exit status 2
我尝试使用以下命令查找该文件所属的包:
apt-file search /usr/lib/x86_64-linux-gnu/libarrow_python.so`
没有运气。
答案1
供您参考 Python Arrow已打包在所有现代 Ubuntu 版本中。
你可以使用以下命令安装 Python 2
sudo apt-get install python-arrow
对于 Python 3,使用
sudo apt-get install python3-arrow