database - rethinkdb index-rebuild 提示 python 驱动程序丢失

标签 database rethinkdb

尝试运行 rethinkdb 重建命令时遇到此错误:

Error when launching 'rethinkdb-index-rebuild': No such file or directory The rethinkdb-index-rebuild command depends on the RethinkDB Python driver, which must be installed. If the Python driver is already installed, make sure that the PATH environment variable includes the location of the backup scripts, and that the current user has permission to access and run the scripts.

但是我已经安装了 rethinkdb python 模块并正确设置了路径:

Requirement already satisfied (use --upgrade to upgrade): rethinkdb in /Library/Python/2.7/site-packages Cleaning up...

为什么这不起作用?

最佳答案

如果 rethinkdb-index-rebuild 脚本不在您的 PATH 中,您也许可以调用 index-rebuild 命令:

python -mrethinkdb._index_rebuild

关于database - rethinkdb index-rebuild 提示 python 驱动程序丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25954281/

相关文章:

mysql - 如何将多行插入到一个表中,然后使用自动递增的 ID 插入到另一个表中?数据库

node.js - 如何更新 rethinkDB 中的嵌套对象

mysql - 示例项目无法启动

javascript - 我应该如何向 koa 后端发送 GET 请求以返回条件结果?

包含 `.pluck` 时 RethinkDb 更改提要不起作用

javascript - 从 Javascript 中的 DateTime 对象中仅提取日期?

mysql - SQL 选择重叠行

ios - SQLite "file is encrypted or is not a database"

database - 以用户身份连接时在 Oracle 数据库中收集 dba_users 信息

sql - MySQL 索引与 SQL Server 的比较