gpt4 book ai didi

python - 在 Ubuntu 上通过 pip 安装 bob 时出错

转载 作者:行者123 更新时间:2023-11-28 21:06:27 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 中安装 bob。

我只是按照bob教程中的方法,但是没有用。

相反,我得到了以下输出:

sudo pip install bob

Collecting bob
Downloading bob-2.6.2.zip (44kB)
100% |████████████████████████████████| 51kB 34kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from bob)
Collecting bob.extension==2.3.9 (from bob)
Downloading bob.extension-2.3.9.zip (175kB)
100% |████████████████████████████████| 184kB 19kB/s
Collecting bob.blitz==2.0.12 (from bob)
Downloading bob.blitz-2.0.12.zip (50kB)
100% |████████████████████████████████| 51kB 25kB/s
Complete output from command python setup.py egg_info:

Installed /tmp/pip-build-vxxn4w/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-vxxn4w/bob.blitz/setup.py", line 70, in <module>
system_include_dirs=system_include_dirs,
File "/tmp/pip-build-vxxn4w/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg/bob/extension/__init__.py", line 375, in __init__
pkgs = check_packages(packages)
File "/tmp/pip-build-vxxn4w/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg/bob/extension/__init__.py", line 64, in check_packages
p = pkgconfig(splitreq[0])
File "/tmp/pip-build-vxxn4w/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg/bob/extension/pkgconfig.py", line 131, in __init__
raise RuntimeError("pkg-config package `%s' was not found" % name)
RuntimeError: pkg-config package `blitz' was not found

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vxxn4w/bob.blitz/

最佳答案

你应该安装 libblitz 才能安装 bob

sudo apt-get install libblitz0-dev
sudo pip install bob

关于python - 在 Ubuntu 上通过 pip 安装 bob 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42810797/

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