Closed mikechen66 closed 4 years ago
I solve the installation problem with the following commands in Anaconda/Conda environment. It also adapts to other virtual environment.
Part One. Terminal Commands
1. Install berkeley-db
wget http://download.oracle.com/berkeley-db/db-4.8.30.zip unzip db-4.8.30.zip cd db-4.8.30/ cd build_unix/ ../dist/configure --prefix=/usr/local --enable-cxx make -j12 make install sudo make install
2. Install bsddb3
wget https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz tar -xvzf bsddb3-6.2.6.tar.gz cd bsddb3-6.2.6/ python setup.py install --berkeley-db=/usr/local/
3. Installl gutenberg
pip install gutenberg
Part Two. Actual Installation Procedure
Since the commands are complex, I am pleased to show the actual installation procedure to enable the sound understanding.
1. Install berkeley-db
(base) mike@mc:~$ wget http://download.oracle.com/berkeley-db/db-4.8.30.zip (base) mike@mc:~$ unzip db-4.8.30.zip (base) mike@mc:~$ cd db-4.8.30/ (base) mike@mc:~/db-4.8.30$ cd build_unix/ (base) mike@mc:~/db-4.8.30/build_unix$ ../dist/configure --prefix=/usr/local --enable-cxx (base) mike@mc:~/db-4.8.30/build_unix$ make -j12 (base) mike@mc:~/db-4.8.30/build_unix$ make install (base) mike@mc:~/db-4.8.30/build_unix$ sudo make install
The above commands enable to install the libraries that the following bsddb3 needs.
2. Install bsddb3-6.2.6
(base) mike@mc:~/db-4.8.30/build_unix$ wget https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz (base) mike@mc:~/db-4.8.30/build_unix$ tar -xvzf bsddb3-6.2.6.tar.gz (base) mike@mc:~/db-4.8.30/build_unix$ cd bsddb3-6.2.6/ (base) mike@mc:~/db-4.8.30/build_unix/bsddb3-6.2.6$ python setup.py install --berkeley-db=/usr/local/
After completing the installation, it will show the following message.
Processing dependencies for bsddb3==6.2.6 Finished processing dependencies for bsddb3==6.2.6
3. Install gutenberg
(base) mike@mc:~/db-4.8.30/build_unix/bsddb3-6.2.6$ cd (base) mike@mc:~$ pip install gutenberg
After completing the installation, it will show the following message.
Successfully built gutenberg Installing collected packages: gutenberg Successfully installed gutenberg-0.8.1
Notes:
If the command "make install" fails, the command "sudo make install" enables a success installation.
Best regards,
Mike
Thanks for reporting your fix. Closing this issue as it seems that your problem is now resolved. Feel free to re-open if this is not the case.
Dear Sir:
I tried many times but I failed the installation in the Python 3.7 environment on Anaconda/Conda Environment (My original Python is Pythonb 3.6). I also tried Berkeley DB 5.3 but also failed. Please give me a help. There are three scenarios listed for your reference.
Scenario One:
(base) mike@mc $ pip install gutenberg
It reminded me the following error message.
Please look at the following long detailed information if necessary.
Scenario Two:
While I tried to install gutenberg with the sudo command. Gutenberg was installed in the original Python 3.6 environment. But I could not use it in the Anaconda/conda environment.
(base) mike@mc $ sudo pip install gutenberg
Scenario Three:
Note:
Please see the following first scenario in details.