本帖最后由 Luyee 于 2021-10-18 16:47 编辑
腾讯云广州清凉,官方一键脚本安装seafile报错,这怎么回事呀
用过的带佬捞捞
Downloading http://mirrors.tencentyun.com/pypi/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
|████████████████████████████████| 247 kB 21.3 MB/s
Building wheels for collected packages: future, mysqlclient, pylibmc, django-simple-captcha, docopt, django-ranged-response
Building wheel for future (setup.py) ... done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=7d9683fcf25b23f800ef67692d04e2971275f6dd65915c7428fc96d9ac5a7d9c
Stored in directory: /root/.cache/pip/wheels/87/c2/bd/746c7f9c3aa603279a2d3b6dfc0ad5ed51f5c3a1f18358929e
Building wheel for mysqlclient (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ihltv1nu/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ihltv1nu/mysqlclient/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-7o3wt0dg
cwd: /tmp/pip-install-ihltv1nu/mysqlclient/
Complete output (44 lines):
mysql_config --version
['8.0.26']
mysql_config --libs
['-L/usr/lib/x86_64-linux-gnu', '-lmysqlclient', '-lpthread', '-ldl', '-lz', '-lssl', '-lcrypto', '-lresolv', '-lm', '-lrt']
mysql_config --cflags
['-I/usr/include/mysql']
ext_options:
library_dirs: ['/usr/lib/x86_64-linux-gnu']
libraries: ['mysqlclient', 'pthread', 'dl', 'resolv', 'm', 'rt']
extra_compile_args: ['-std=c99']
extra_link_args: []
include_dirs: ['/usr/include/mysql']
extra_objects: []
define_macros: [('version_info', "(2,0,3,'final',0)"), ('__version__', '2.0.3')]
running bdist_wheel
。。。。。。。。。
creating build/lib.linux-x86_64-3.8/MySQLdb
creating build/lib.linux-x86_64-3.8/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.8/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.8/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.8/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.8/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.8/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.8/MySQLdb/constants
running build_ext
building 'MySQLdb._mysql' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/MySQLdb
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(2,0,3,'final',0) -D__version__=2.0.3 -I/usr/include/mysql -I/usr/include/python3.8 -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.8/MySQLdb/_mysql.o -std=c99
MySQLdb/_mysql.c:46:10: fatal error: Python.h: No such file or directory
46 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for mysqlclient
Running setup.py clean for mysqlclient
Building wheel for pylibmc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ihltv1nu/pylibmc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ihltv1nu/pylibmc/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-riu91258
cwd: /tmp/pip-install-ihltv1nu/pylibmc/
Complete output (28 lines):
/tmp/pip-install-ihltv1nu/pylibmc/setup.py:98: DeprecationWarning: 'U' mode is deprecated
with open("README.rst", "U", encoding="utf-8") as r:
/tmp/pip-install-ihltv1nu/pylibmc/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.8
creating build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.8/pylibmc
copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.8/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_ZLIB -I/usr/include/python3.8 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.8/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
In file included from src/_pylibmcmodule.c:34:
src/_pylibmcmodule.h:41:10: fatal error: Python.h: No such file or directory
41 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pylibmc
Running setup.py clean for pylibmc
Building wheel for django-simple-captcha (setup.py) ... done
Created wheel for django-simple-captcha: filename=django_simple_captcha-0.5.14-py2.py3-none-any.whl size=92780 sha256=88e5073c88aef16ffc923ccb8b7df300e8f87555044cf587d71f4e8f872c09e8
Stored in directory: /root/.cache/pip/wheels/f4/9d/0a/0469a1c0079574cbbbba4a708bcd23279fed57db14dc11580a
Building wheel for docopt (setup.py) ... done
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13704 sha256=a7e9c483a95204febc030582b4b36d542b93bea783bcb3937d64f05f2d41feb6
Stored in directory: /root/.cache/pip/wheels/34/92/96/4d7b02c09b500e72de9fa9d3396a3e95e686c1a927f0b5a71f
Building wheel for django-ranged-response (setup.py) ... done
Created wheel for django-ranged-response: filename=django_ranged_response-0.2.0-py3-none-any.whl size=3132 sha256=c1c39e802fa16f95af6c562b8a5d9741598fb8149d864fdf8ec1591362a79ecc
Stored in directory: /root/.cache/pip/wheels/e8/cf/04/0b1bba8074afd2e32dfcc7f803e2360f841948a287a9d46e78
Successfully built future django-simple-captcha docopt django-ranged-response
Failed to build mysqlclient pylibmc
Installing collected packages: pytz, sqlparse, django, future, mysqlclient, pymysql, Pillow, pylibmc, captcha, greenlet, sqlalchemy, numpy, tifffile, cycler, kiwisolver, pyparsing, python-dateutil, matplotlib, networkx, PyWavelets, scipy, imageio, scikit-image, docopt, aggdraw, psd-tools, django-pylibmc, django-ranged-response, django-simple-captcha
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ihltv1nu/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ihltv1nu/mysqlclient/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-yfv03l7o/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/mysqlclient
cwd: /tmp/pip-install-ihltv1nu/mysqlclient/
Complete output (44 lines):
mysql_config --version
['8.0.26']
mysql_config --libs
['-L/usr/lib/x86_64-linux-gnu', '-lmysqlclient', '-lpthread', '-ldl', '-lz', '-lssl', '-lcrypto', '-lresolv', '-lm', '-lrt']
。。。。。。。。。。。。。。。。。。。。。
MySQLdb/_mysql.c:46:10: fatal error: Python.h: No such file or directory
46 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ihltv1nu/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ihltv1nu/mysqlclient/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-yfv03l7o/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/mysqlclient Check the logs for full command output. |