因此,我一直试图使用本站上的说明来安装python的gutenberg模块(因为我在mac上,所以使用brew而不是pip )。每次我尝试这样做,它都会返回如下内容:
pip install gutenberg
Collecting gutenberg
Using cached Gutenberg-0.4.2.tar.gz
Collecting bsddb3>=6.1.0 (from gutenberg)
Using cached bsddb3-6.2.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/53/zsh0zhwx635d_rss6hkgrknr0000gn/T/pip-build-Mn4wGp/bsddb3/因此,我使用brew (brew install berkeley-db)安装了伯克利数据库,错误改变了:
pip install gutenberg
Requirement already satisfied (use --upgrade to upgrade): gutenberg in ./anaconda2/lib/python2.7/site-packages/Gutenberg-0.4.2-py2.7.egg
Collecting bsddb3>=6.1.0 (from gutenberg)
Using cached bsddb3-6.2.1.tar.gz
Complete output from command python setup.py egg_info:
Trying to use the Berkeley DB you specified...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/53/zsh0zhwx635d_rss6hkgrknr0000gn/T/pip-build-FEd8dy/bsddb3/setup.py", line 40, in <module>
import setup2
File "setup2.py", line 350, in <module>
"version %d.%d" %db_ver)
TypeError: %d format: a number is required, not NoneType
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/53/zsh0zhwx635d_rss6hkgrknr0000gn/T/pip-build-FEd8dy/bsddb3/我试过做easy_install,重新安装安装工具,以及其他一些东西。以下是我尝试过的所有事情的链接:
https://github.com/PokemonGoF/PokemonGo-Bot/issues/2919
当我说我已经试过了所有这些,我确实是指上述链接中的所有建议,所以我可能在这个过程中搞砸了一些东西。我不太清楚到底是怎么回事,我已经花了好几个小时的时间了,还没能找到任何成功的解决方案。我不确定我是不是漏掉了什么东西,但是如果有人有任何建议的话,这真的会有帮助。
发布于 2017-02-07 00:57:20
只是我这边的一个补充..。我在my 10 for python3.4上修正了这个问题:
转到Powershell窗口并键入以下内容:
1) Update pip >>>>> py -3.4 -m pip install --upgrade pip
2) Install Numpy >>>>> py -3.4 -m pip install numpy
3) Install Matplotlib >>>> py -3.4 -m pip install matplotlibhttps://stackoverflow.com/questions/39991940
复制相似问题