Advertisement
skaterksa

pip install mysqlclient (_____ errror)

Jun 30th, 2018
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.60 KB | None | 0 0
  1.    
  2. Search ( / )
  3.  
  4.  Setup Python App
  5. Collecting mysqlclient
  6. Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz
  7. Building wheels for collected packages: mysqlclient
  8. Running setup.py bdist_wheel for mysqlclient: started
  9. Running setup.py bdist_wheel for mysqlclient: finished with status 'error'
  10. Complete output from command /home/medicala/virtualenv/python__apps_medisproj/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9jv8fexj/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/tmp3myb1s8gpip-wheel- --python-tag cp35:
  11. /opt/alt/python35/lib64/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  12. warnings.warn(msg)
  13. running bdist_wheel
  14. running build
  15. running build_py
  16. creating build
  17. creating build/lib.linux-x86_64-3.5
  18. copying _mysql_exceptions.py -> build/lib.linux-x86_64-3.5
  19. creating build/lib.linux-x86_64-3.5/MySQLdb
  20. copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb
  21. copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.5/MySQLdb
  22. copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb
  23. copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb
  24. copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb
  25. copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb
  26. copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb
  27. creating build/lib.linux-x86_64-3.5/MySQLdb/constants
  28. copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  29. copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  30. copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  31. copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  32. copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  33. copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  34. copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  35. running build_ext
  36. building '_mysql' extension
  37. creating build/temp.linux-x86_64-3.5
  38. gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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,13,'final',0) -D__version__=1.3.13 -I/usr/include/mysql -I/usr/include/mysql/.. -I/opt/alt/python35/include/python3.5m -c _mysql.c -o build/temp.linux-x86_64-3.5/_mysql.o
  39. _mysql.c:29:19: fatal error: mysql.h: No such file or directory
  40. #include "mysql.h"
  41. ^
  42. compilation terminated.
  43. error: command 'gcc' failed with exit status 1
  44. ----------------------------------------
  45. Failed building wheel for mysqlclient
  46. Running setup.py clean for mysqlclient
  47. Failed to build mysqlclient
  48. Installing collected packages: mysqlclient
  49. Running setup.py install for mysqlclient: started
  50. Running setup.py install for mysqlclient: finished with status 'error'
  51. Complete output from command /home/medicala/virtualenv/python__apps_medisproj/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9jv8fexj/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-0hghp_n7-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/medicala/virtualenv/python__apps_medisproj/3.5/include/site/python3.5/mysqlclient:
  52. /opt/alt/python35/lib64/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  53. warnings.warn(msg)
  54. running install
  55. running build
  56. running build_py
  57. creating build
  58. creating build/lib.linux-x86_64-3.5
  59. copying _mysql_exceptions.py -> build/lib.linux-x86_64-3.5
  60. creating build/lib.linux-x86_64-3.5/MySQLdb
  61. copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb
  62. copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.5/MySQLdb
  63. copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb
  64. copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb
  65. copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb
  66. copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb
  67. copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb
  68. creating build/lib.linux-x86_64-3.5/MySQLdb/constants
  69. copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  70. copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  71. copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  72. copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  73. copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  74. copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  75. copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants
  76. running build_ext
  77. building '_mysql' extension
  78. creating build/temp.linux-x86_64-3.5
  79. gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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,13,'final',0) -D__version__=1.3.13 -I/usr/include/mysql -I/usr/include/mysql/.. -I/opt/alt/python35/include/python3.5m -c _mysql.c -o build/temp.linux-x86_64-3.5/_mysql.o
  80. _mysql.c:29:19: fatal error: mysql.h: No such file or directory
  81. #include "mysql.h"
  82. ^
  83. compilation terminated.
  84. error: command 'gcc' failed with exit status 1
  85. ----------------------------------------
  86. Command "/home/medicala/virtualenv/python__apps_medisproj/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9jv8fexj/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-0hghp_n7-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/medicala/virtualenv/python__apps_medisproj/3.5/include/site/python3.5/mysqlclient" failed with error code 1 in /tmp/pip-build-9jv8fexj/mysqlclient/
  87. You are using pip version 9.0.1, however version 10.0.1 is available.
  88. You should consider upgrading via the 'pip install --upgrade pip' command.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement