Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 941
Artem Sh Avatar asked Nov 16 '22 22:11

Artem Sh


1 Answers

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
like image 195
shivams Avatar answered Dec 06 '22 21:12

shivams