Collecting pylibmc
Downloading
https://pypi.tuna.tsinghua.edu.cn/packages/a7/0c/f7a3af34b05c167a69ed1fc330b06b658dac4ab25b8632c52d1022dd5337/pylibmc-1.6.1.tar.gz (64 kB)
|████████████████████████████████| 64 kB 367 kB/s
Building wheels for collected packages: pylibmc
Building wheel for pylibmc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d8fie24x
cwd: /tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/
Complete output (27 lines):
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:98: DeprecationWarning: 'U' mode is deprecated
with open("README.rst", "U", encoding="utf-8") as r:
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:100: DeprecationWarning: 'U' mode is deprecated
with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.9/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/src
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_ZLIB -I/usr/include/python3.9 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.9/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
src/_pylibmcmodule.c:36:12: 致命错误:zlib.h:没有那个文件或目录
36 | # include <zlib.h>
| ^~~~~~~~
编译中断。
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pylibmc
Running setup.py clean for pylibmc
Failed to build pylibmc
Installing collected packages: pylibmc
Running setup.py install for pylibmc ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-eotz578e/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/xxxxx/.local/include/python3.9/pylibmc
cwd: /tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/
Complete output (27 lines):
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:98: DeprecationWarning: 'U' mode is deprecated
with open("README.rst", "U", encoding="utf-8") as r:
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:100: DeprecationWarning: 'U' mode is deprecated
with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.9/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/src
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_ZLIB -I/usr/include/python3.9 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.9/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
src/_pylibmcmodule.c:36:12: 致命错误:zlib.h:没有那个文件或目录
36 | # include <zlib.h>
| ^~~~~~~~
编译中断。
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-eotz578e/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/xxxxx.local/include/python3.9/pylibmc Check the logs for full command output.