I am trying to install bsddb3, but there is an error, how can I fix it?
Asked Answered
C

1

8

I write in the console:

pip3 install bsddb3

But I get the error:

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)

Wrote after: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
Coolish answered 30/10, 2019 at 18:0 Comment(7)
Same question was asked check hereEuridice
@abdoulsn, I'm use linux ubuntu, for me doen't worked.Coolish
you know where is berkeley-db location ?Sherrisherrie
@temmo, no. You think the wrong position?Coolish
maybe add python -m pip install bsddb --berkeley-db=/path/to/bsddbSherrisherrie
@temmo, doesn't work. Console wrote in questionCoolish
@ArtemSh HAVE YOU INSTAll the bsddb in your ubuntu machine ? also if not then download bsddb3 tar file and unzip and follow the readme instructionSherrisherrie
A
4

On Ubuntu systems (as OP is using Ubuntu), you need to install the libdb++-dev package and then bsddb3 python package installs fine:

sudo apt-get install libdb++-dev
export BERKELEYDB_DIR=/usr
pip3 install bsddb3
Attalanta answered 19/11, 2020 at 18:55 Comment(2)
It works on kali.Fluorescein
Thank you - these steps are also required on Debian Bullseye (on pi)Christal

© 2022 - 2024 — McMap. All rights reserved.