小编Mar*_*sNo的帖子

Redis 失败。Ubuntu 18.04

我正在尝试使用makeRedis 6.0.6.,但是在运行 make 命令时出现此错误:

(.venv) vagrant@vagrant:/vagrant/redis-6.0.6$ make
cd src && make all
make[1]: Entering directory '/vagrant/redis-6.0.6/src'
/bin/sh: 1: pkg-config: not found
    CC Makefile.dep
/bin/sh: 1: pkg-config: not found
make[1]: Warning: File 'Makefile.dep' has modification time 1.3 s in the future
    CC adlist.o
/bin/sh: 1: cc: not found
Makefile:315: recipe for target 'adlist.o' failed
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory '/vagrant/redis-6.0.6/src'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

安装 pkg-config 后,我现在收到一个不同的错误:

(.venv) vagrant@vagrant:/vagrant/redis-6.0.6$ …
Run Code Online (Sandbox Code Playgroud)

redis vagrant redis-server

2
推荐指数
2
解决办法
1462
查看次数

使用 Flask-Sqlalchemy 通过过滤器进行分页

我正在尝试为我的其中一个视图设置分页,但结果被过滤,我想知道如何做这样的事情。

products_product_name = Product.query.filter(Product.product_name.contains(search_name)).paginate(1, 20)
Run Code Online (Sandbox Code Playgroud)

python pagination flask flask-sqlalchemy

0
推荐指数
1
解决办法
6623
查看次数