Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.5 kB
1
Indexable
Never
[14:58] Gopi Peruboina

ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9uq1av2p/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9uq1av2p/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-q5_36rbd/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hobapp/.local/include/python3.7m/mysqlclient

         cwd: /tmp/pip-install-9uq1av2p/mysqlclient/

    Complete output (31 lines):

    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-x86_64-3.7

    copying _mysql_exceptions.py -> build/lib.linux-x86_64-3.7

    creating build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/release.py -> build/lib.linux-x86_64-3.7/MySQLdb

    copying MySQLdb/times.py -> build/lib.linux-x86_64-3.7/MySQLdb

    creating build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-3.7/MySQLdb/constants

    running build_ext

    building '_mysql' extension

    creating build/temp.linux-x86_64-3.7

    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 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,3,14,'final',0) -D__version__=1.3.14 -I/usr/include/mysql -I/usr/include/python3.7m -c _mysql.c -o build/temp.linux-x86_64-3.7/_mysql.o

    _mysql.c:37: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-9uq1av2p/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9uq1av2p/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-q5_36rbd/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hobapp/.local/include/python3.7m/mysqlclient Check the logs for full command output