![pyarrow 问题:没有规则来制作目标‘/usr/lib/x86_64-linux-gnu/libarrow_python.so’](https://linux22.com/image/905137/pyarrow%20%E9%97%AE%E9%A2%98%EF%BC%9A%E6%B2%A1%E6%9C%89%E8%A7%84%E5%88%99%E6%9D%A5%E5%88%B6%E4%BD%9C%E7%9B%AE%E6%A0%87%E2%80%98%2Fusr%2Flib%2Fx86_64-linux-gnu%2Flibarrow_python.so%E2%80%99.png)
我正在尝试在 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