Guest User

Untitled

a guest
Aug 22nd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.55 KB | None | 0 0
  1. >pip install mysqlclient
  2. Collecting mysqlclient
  3. Using cached mysqlclient-2.0.1.tar.gz (87 kB)
  4. Building wheels for collected packages: mysqlclient
  5. Building wheel for mysqlclient (setup.py) ... error
  6. ERROR: Command errored out with exit status 1:
  7. command: /путь/к/моему/питону/myenv/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"'; __fil
  8. 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
  9. e(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-_5ffzzhh
  10. cwd: /tmp/pip-install-u0liz8j8/mysqlclient/
  11. Complete output (30 lines):
  12. running bdist_wheel
  13. running build
  14. running build_py
  15. creating build
  16. creating build/lib.linux-x86_64-3.5
  17. creating build/lib.linux-x86_64-3.5/MySQLdb
  18. copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb
  19. copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.5/MySQLdb
  20. copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb
  21. copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb
  22. copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb
  23. copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb
  24. copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb
  25. creating build/lib.linux-x86_64-3.5/MySQLdb/constants
  26. copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  27. copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  28. copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  29. copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  30. copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  31. copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  32. running build_ext
  33. building 'MySQLdb._mysql' extension
  34. creating build/temp.linux-x86_64-3.5
  35. creating build/temp.linux-x86_64-3.5/MySQLdb
  36. 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
  37. 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
  38. 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
  39. -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
  40. MySQLdb/_mysql.c:46:20: fatal error: Python.h: No such file or directory
  41. #include "Python.h"
  42. ^
  43. compilation terminated.
  44. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  45. ----------------------------------------
  46. ERROR: Failed building wheel for mysqlclient
  47. Running setup.py clean for mysqlclient
  48. Failed to build mysqlclient
  49. 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
  50. 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.
  51. Installing collected packages: mysqlclient
  52. Running setup.py install for mysqlclient ... error
  53. ERROR: Command errored out with exit status 1:
  54. command: /путь/к/моему/питону/myenv/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"'; __f
  55. 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
  56. 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
  57. cwd: /tmp/pip-install-u0liz8j8/mysqlclient/
  58. Complete output (30 lines):
  59. running install
  60. running build
  61. running build_py
  62. creating build
  63. creating build/lib.linux-x86_64-3.5
  64. creating build/lib.linux-x86_64-3.5/MySQLdb
  65. copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb
  66. copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.5/MySQLdb
  67. copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb
  68. copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb
  69. copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb
  70. copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb
  71. copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb
  72. creating build/lib.linux-x86_64-3.5/MySQLdb/constants
  73. copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  74. copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  75. copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  76. copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  77. copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  78. copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  79. running build_ext
  80. building 'MySQLdb._mysql' extension
  81. creating build/temp.linux-x86_64-3.5/MySQLdb
  82. 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
  83. 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
  84. 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
  85. .0 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
  86. MySQLdb/_mysql.c:46:20: fatal error: Python.h: No such file or directory
  87. #include "Python.h"
  88. ^
  89. compilation terminated.
  90. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  91. ----------------------------------------
  92. 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
  93. j8/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-u0liz8j8/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
  94. '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rcsowo5o/install-record.txt --single-version-externally-managed --compile --instal
  95. l-headers /путь/к/моему/питону/myenv/include/site/python3.5/mysqlclient Check the logs for full command output.
  96.  
  97.  
Add Comment
Please, Sign In to add comment