Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >pip install mysqlclient
- Collecting mysqlclient
- Using cached mysqlclient-2.0.1.tar.gz (87 kB)
- Building wheels for collected packages: mysqlclient
- Building wheel for mysqlclient (setup.py) ... error
- ERROR: Command errored out with exit status 1:
- command: /путь/к/моему/питону/myenv/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"'; __fil
- e__='"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compil
- e(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-_5ffzzhh
- cwd: /tmp/pip-install-u0liz8j8/mysqlclient/
- Complete output (30 lines):
- running bdist_wheel
- running build
- running build_py
- creating build
- creating build/lib.linux-x86_64-3.5
- creating build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb
- creating build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- running build_ext
- building 'MySQLdb._mysql' extension
- creating build/temp.linux-x86_64-3.5
- creating build/temp.linux-x86_64-3.5/MySQLdb
- x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPI
- C -Dversion_info=(2,0,1,'final',0) -D__version__=2.0.1 -I/usr/include -I/usr/include/python3.5m -I//путь/к/моему/питону/myenv/include/python3.5m -c MySQLdb/_mysql.c -o buil
- d/temp.linux-x86_64-3.5/MySQLdb/_mysql.o -g -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -fPIC -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=rel63.0
- -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
- MySQLdb/_mysql.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
- ----------------------------------------
- ERROR: Failed building wheel for mysqlclient
- Running setup.py clean for mysqlclient
- Failed to build mysqlclient
- DEPRECATION: Could not build wheels for mysqlclient which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionali
- ty. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
- Installing collected packages: mysqlclient
- Running setup.py install for mysqlclient ... error
- ERROR: Command errored out with exit status 1:
- command: /путь/к/моему/питону/myenv/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"'; __f
- ile__='"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(comp
- ile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rcsowo5o/install-record.txt --single-version-externally-managed --compile --install-headers /путь/к/моему/питону/myenv/include/site/python3.5/mysqlclient
- cwd: /tmp/pip-install-u0liz8j8/mysqlclient/
- Complete output (30 lines):
- running install
- running build
- running build_py
- creating build
- creating build/lib.linux-x86_64-3.5
- creating build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb
- copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb
- creating build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
- running build_ext
- building 'MySQLdb._mysql' extension
- creating build/temp.linux-x86_64-3.5/MySQLdb
- x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -f
- PIC -Dversion_info=(2,0,1,'final',0) -D__version__=2.0.1 -I/usr/include -I/usr/include/python3.5m -I/путь/к/моему/питону/myenv/include/python3.5m -c MySQLdb/_mysql.c -o bu
- ild/temp.linux-x86_64-3.5/MySQLdb/_mysql.o -g -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -fPIC -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=rel63
- .0 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
- MySQLdb/_mysql.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
- ----------------------------------------
- ERROR: Command errored out with exit status 1: /путь/к/моему/питону/myenv/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u0liz8
- j8/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-u0liz8j8/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-rcsowo5o/install-record.txt --single-version-externally-managed --compile --instal
- l-headers /путь/к/моему/питону/myenv/include/site/python3.5/mysqlclient Check the logs for full command output.
Add Comment
Please, Sign In to add comment