- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经使用 Homebrew 安装 berkeley-db,现在正在努力安装 bsddb3 Python 包。任何帮助将不胜感激。
bash-3.2$ BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db/18.1.32_1 pip install bsddb3
Collecting bsddb3
Using cached bsddb3-6.2.7.tar.gz (437 kB)
ERROR: Command errored out with exit status 1:
command: /Users/ryonlife/.local/share/virtualenvs/peg-scrapy-pegbot-ndRdHu61/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/setup.py'"'"'; __file__='"'"'/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/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 /private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/pip-egg-info
cwd: /private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/setup.py", line 42, in <module>
import setup3
File "/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/setup3.py", line 354, in <module>
db_ver = (int(fullverstr[0]), int(fullverstr[2]))
ValueError: invalid literal for int() with base 10: '.'
Trying to use the Berkeley DB you specified...
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
最佳答案
我的诀窍是使用 Homebrew 安装 berkeley-db@4,而不是 berkeley-db。
brew install berkeley-db@4
BERKELEYDB_DIR=$(brew --prefix berkeley-db@4) pip install bsddb3
关于python - 无法在 macOS Catalina 10.15.4 上安装 bsddb3 Python 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62457435/
我有一个 python BSDDB 数据库。显然,它存储在硬盘上。当我删除一些条目时,驱动器上的文件不会变小(因此 - 它增长得相当快......) utDelList = [] urlsDelL
bsddb 模块有三种打开 db 文件的方法: bsddb.hashopen(filename[, flag[, mode[, pgsize[, ffactor[, nelem[, cachesize
我计划在用 python 为 windows 和 linux 编写的商业产品中使用 bsddb/pybsddb。我也打算用py2exe。 但我不确定法律影响。我看过商业产品只要是用python写的就不
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 7 年前。 Improve this qu
我有一个在 OS X 上用 python 2.7.2 开发的应用程序。我使用模块 shelve 并且在 mac 上似乎默认为 bsddb。该程序不会在装有 ActiveState python 2.7
我对 python 完全陌生,当我尝试导入 bsdddb 时出现此消息 Traceback (most recent call last): File "", line 1, in File
我正在尝试读取由 reprepro 创建的数据库文件。我对 bdb 没有那么多经验,所以我在这里可能会感到困惑,但看起来数据库在某种程度上是分层的。 如果我简单地执行 btopen('path/to/
我正在使用 python 2.7.3 和 Berkeley DB 来存储数据。我没有找到关于该模块的太多信息,仅在 python docks 中。我看到那里描述了一些功能,但我没有看到关于如何从数据库
我有一个应用程序,我需要将 Python shelve pickled 字典文件转换为 JSON 文件。 import ujson, shelve with open("shelveFile", "r
在带有开发者工具的 Mac OS X 10.5 (Leopard) 上的默认 Python 安装上执行以下操作: noel ~ : python Python 2.5.1 (r251:54863, J
我有一个由 C 实现(python bsddb 模块)创建的 berkeley db 文件(*.bdb)。是否可以通过 Berkeley Db 的纯 Java 实现来读取此文件?我尝试使用 berke
我是一名优秀的程序员,十分优秀!