gpt4 book ai didi

pip - 如何修复 "Exception: Cannot find boost_python library"?

转载 作者:行者123 更新时间:2023-12-04 01:52:53 24 4
gpt4 key购买 nike

我在尝试安装 osmium 时收到以下错误消息:

$ pip install osmium --user
[...]
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-hjt_5k/osmium/setup.py", line 115, in <module>
raise Exception("Cannot find boost_python library")
Exception: Cannot find boost_python library

我该如何解决?

最佳答案

Ubuntu 16.04 上该问题的修复是

$ sudo apt-get install libboost-python-dev

其他事宜
libosmium-2.14.2/include/osmium/io/bzip2_compression.hpp:52:19: fatal error: bzlib.h: No such file or directory
compilation terminated.
error: command 'c++' failed with exit status 1

是固定的
sudo apt-get install libbz2-dev

关于pip - 如何修复 "Exception: Cannot find boost_python library"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52073889/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com