D:\Python实践>pip install gutenberg
Collecting gutenberg
Using cached Gutenberg-0.8.1.tar.gz (19 kB)
Collecting SPARQLWrapper>=1.8.2
Using cached SPARQLWrapper-1.8.5-py3-none-any.whl (26 kB)
Collecting bsddb3>=6.1.0
Using cached bsddb3-6.2.7.tar.gz (437 kB)
ERROR: Command errored out with exit status 1:
command: ‘c:\users\quanbin\appdata\local\programs\python\python37\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\quanbin\AppData\Local\Temp\pip-install-cibukp0v\bsddb3\setup.py’"’"’; file=’"’"‘C:\Users\quanbin\AppData\Local\Temp\pip-install-cibukp0v\bsddb3\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base ‘C:\Users\quanbin\AppData\Local\Temp\pip-pip-egg-info-558tcuxf’
cwd: C:\Users\quanbin\AppData\Local\Temp\pip-install-cibukp0v\bsddb3
Complete output (7 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\quanbin\AppData\Local\Temp\pip-install-cibukp0v\bsddb3\setup.py”, line 42, in
import setup3
File “C:\Users\quanbin\AppData\Local\Temp\pip-install-cibukp0v\bsddb3\setup3.py”, line 385, in
with open(os.path.join(incdir, ‘db.h’), ‘r’) as f :
FileNotFoundError: [Errno 2] No such file or directory: ‘db/include\db.h’
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
安装gutenberg报错,尝试在官网下载文件安装到指定文件夹还是没用
最新推荐文章于 2025-03-12 10:22:17 发布
在尝试通过pip安装gutenberg库时遇到错误,即使从官网下载并指定安装路径也无法成功。错误提示指向bsddb3包的安装过程中找不到'db.h'文件,导致安装失败。
1081

被折叠的 条评论
为什么被折叠?



