我在运行Debian Stretch的Windows 10 WSL上安装pip软件包时遇到问题。
运行时sudo pip install invoice2data,python3-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) 我有一个表(约 1000 行)必须预加载到客户端。对于每一行,我想显示从远程服务器获取的图像。
然而,一次加载所有内容意味着 1000 个请求和大约 50 MB 的传输量,这并不是太大。
如何确保数据表仅显示当前页面/搜索上的图像?