I receive the error "No module named _bsddb". I installed berkeley-db4 using Brew. I load up the virtualenv and use "pip install bsddb3 --install-option="--berkeley-db='/usr/local/opt/berkeley-db4'" but I can't get passed this in any way I can think of:
Collecting bsddb3
Using cached bsddb3-6.1.1.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)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/g6/j96dym1x0jx9ydrdkfs4dhnr0000gn/T/pip-build-676fDz/bsddb3
This is probably OS X only, because the shipped Python has something broken regarding berkeley-db and/or bsddb.
The solution:
Install brew and use brew to install python
After this 'which python' should pount to '/usr/local/bin/python'