小编Saš*_*ašo的帖子

安装pip套件时出现“ regex的建筑轮子失败”

我在运行Debian Stretch的Windows 10 WSL上安装pip软件包时遇到问题。

运行时sudo pip install invoice2datapython3-pip安装后遇到以下错误。

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Failed building wheel for regex
Running setup.py clean for regex
Failed to build regex

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c regex_2/_regex.c -o build/temp.linux-x86_64-2.7/regex_2/_regex.o
regex_2/_regex.c:46:20: fatal error: Python.h: No such file or directory
 #include "Python.h"
                    ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


---------------------------------------- …
Run Code Online (Sandbox Code Playgroud)

python pip debian-stretch

4
推荐指数
1
解决办法
5003
查看次数

数据表 - 仅加载可见图像

我有一个表(约 1000 行)必须预加载到客户端。对于每一行,我想显示从远程服务器获取的图像。

然而,一次加载所有内容意味着 1000 个请求和大约 50 MB 的传输量,这并不是太大。

如何确保数据表仅显示当前页面/搜索上的图像?

jquery image datatables

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

标签 统计

datatables ×1

debian-stretch ×1

image ×1

jquery ×1

pip ×1

python ×1