Untitled
unknown
plain_text
a year ago
4.1 kB
2
Indexable
Never
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-fouw7k7x/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fouw7k7x/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-yt5svsx7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/ec2-user/.local/include/python3.7m/mysqlclient cwd: /tmp/pip-install-fouw7k7x/mysqlclient/ Complete output (44 lines): mysql_config --version ['5.5.68'] mysql_config --libs ['-L/usr/lib64/mysql', '-lmysqlclient', '-lpthread', '-lz', '-lm', '-ldl', '-lssl', '-lcrypto'] mysql_config --cflags ['-I/usr/include/mysql'] ext_options: library_dirs: ['/usr/lib64/mysql'] libraries: ['mysqlclient', 'pthread', 'm', 'dl'] extra_compile_args: ['-std=c99'] extra_link_args: [] include_dirs: ['/usr/include/mysql'] extra_objects: [] define_macros: [('version_info', "(2,1,1,'final',0)"), ('__version__', '2.1.1')] running install running build running build_py creating build creating build/lib.linux-aarch64-3.7 creating build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/release.py -> build/lib.linux-aarch64-3.7/MySQLdb copying MySQLdb/times.py -> build/lib.linux-aarch64-3.7/MySQLdb creating build/lib.linux-aarch64-3.7/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-aarch64-3.7/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-aarch64-3.7/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-aarch64-3.7/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-aarch64-3.7/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-aarch64-3.7/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-aarch64-3.7/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-aarch64-3.7 creating build/temp.linux-aarch64-3.7/MySQLdb gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -moutline-atomics -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(2,1,1,'final',0) -D__version__=2.1.1 -I/usr/include/mysql -I/usr/include/python3.7m -c MySQLdb/_mysql.c -o build/temp.linux-aarch64-3.7/MySQLdb/_mysql.o -std=c99 MySQLdb/_mysql.c:46:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command '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-fouw7k7x/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fouw7k7x/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-yt5svsx7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/ec2-user/.local/include/python3.7m/mysqlclient Check the logs for full command output. has context menu Compose