gpt4 book ai didi

python - 我正在尝试安装 bsddb3,但出现错误,我该如何解决?

转载 作者:行者123 更新时间:2023-12-03 17:28:24 26 4
gpt4 key购买 nike

我在控制台写:

pip3 install bsddb3

但我收到错误:
Collecting bsddb3
Using cached https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz
Complete output from command python setup.py egg_info:
Can't find a local Berkeley DB installation.
(suggestion: try the --berkeley-db=/path/to/bsddb option)

后写:python -m pip install bsddb --berkeley-db=/path/to/bsddb
Usage:   
/usr/bin/python -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python -m pip install [options] [-e] <local project path> ...
/usr/bin/python -m pip install [options] <archive url/path> ...
no such option: --berkeley-db

最佳答案

在 Ubuntu 系统上(因为 OP 使用的是 Ubuntu),您需要安装 libdb++-dev打包然后bsddb3 python包安装正常:

sudo apt-get install libdb++-dev
export BERKELEYDB_DIR=/usr
pip3 install bsddb3

关于python - 我正在尝试安装 bsddb3,但出现错误,我该如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58631288/

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