avaaren

blyat)

Mar 13th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.59 KB | None | 0 0
  1. pip3 install psycopg2
  2. Collecting psycopg2
  3. Using cached https://files.pythonhosted.org/packages/84/d7/6a93c99b5ba4d4d22daa3928b983cec66df4536ca50b22ce5dcac65e4e71/psycopg2-2.8.4.tar.gz
  4. Building wheels for collected packages: psycopg2
  5. Running setup.py bdist_wheel for psycopg2 ... error
  6. Complete output from command /home/avaaren/PY/quiz/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uyzh4vtl/psycopg2/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/tmpuag6g2_dpip-wheel- --python-tag cp36:
  7. running bdist_wheel
  8. running build
  9. running build_py
  10. creating build
  11. creating build/lib.linux-x86_64-3.6
  12. creating build/lib.linux-x86_64-3.6/psycopg2
  13. copying lib/errors.py -> build/lib.linux-x86_64-3.6/psycopg2
  14. copying lib/sql.py -> build/lib.linux-x86_64-3.6/psycopg2
  15. copying lib/errorcodes.py -> build/lib.linux-x86_64-3.6/psycopg2
  16. copying lib/extensions.py -> build/lib.linux-x86_64-3.6/psycopg2
  17. copying lib/_lru_cache.py -> build/lib.linux-x86_64-3.6/psycopg2
  18. copying lib/pool.py -> build/lib.linux-x86_64-3.6/psycopg2
  19. copying lib/_range.py -> build/lib.linux-x86_64-3.6/psycopg2
  20. copying lib/extras.py -> build/lib.linux-x86_64-3.6/psycopg2
  21. copying lib/__init__.py -> build/lib.linux-x86_64-3.6/psycopg2
  22. copying lib/compat.py -> build/lib.linux-x86_64-3.6/psycopg2
  23. copying lib/_json.py -> build/lib.linux-x86_64-3.6/psycopg2
  24. copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.6/psycopg2
  25. copying lib/tz.py -> build/lib.linux-x86_64-3.6/psycopg2
  26. running build_ext
  27. building 'psycopg2._psycopg' extension
  28. creating build/temp.linux-x86_64-3.6
  29. creating build/temp.linux-x86_64-3.6/psycopg
  30. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120002 -DHAVE_LO64=1 -I/home/avaaren/PY/quiz/env/include -I/usr/include/python3.6m -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.6/psycopg/psycopgmodule.o -Wdeclaration-after-statement
  31. In file included from psycopg/psycopgmodule.c:27:0:
  32. ./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: Нет такого файла или каталога
  33. #include <libpq-fe.h>
  34. ^~~~~~~~~~~~
  35. compilation terminated.
  36.  
  37. It appears you are missing some prerequisite to build the package from source.
  38.  
  39. You may install a binary package by installing 'psycopg2-binary' from PyPI.
  40. If you want to install psycopg2 from source, please install the packages
  41. required for the build and try again.
  42.  
  43. For further information please check the 'doc/src/install.rst' file (also at
  44. <http://initd.org/psycopg/docs/install.html>).
  45.  
  46. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  47.  
  48. ----------------------------------------
  49. Failed building wheel for psycopg2
  50. Running setup.py clean for psycopg2
  51. Failed to build psycopg2
  52. Installing collected packages: psycopg2
  53. Running setup.py install for psycopg2 ... error
  54. Complete output from command /home/avaaren/PY/quiz/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uyzh4vtl/psycopg2/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-3utznznq-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/avaaren/PY/quiz/env/include/site/python3.6/psycopg2:
  55. running install
  56. running build
  57. running build_py
  58. creating build
  59. creating build/lib.linux-x86_64-3.6
  60. creating build/lib.linux-x86_64-3.6/psycopg2
  61. copying lib/errors.py -> build/lib.linux-x86_64-3.6/psycopg2
  62. copying lib/sql.py -> build/lib.linux-x86_64-3.6/psycopg2
  63. copying lib/errorcodes.py -> build/lib.linux-x86_64-3.6/psycopg2
  64. copying lib/extensions.py -> build/lib.linux-x86_64-3.6/psycopg2
  65. copying lib/_lru_cache.py -> build/lib.linux-x86_64-3.6/psycopg2
  66. copying lib/pool.py -> build/lib.linux-x86_64-3.6/psycopg2
  67. copying lib/_range.py -> build/lib.linux-x86_64-3.6/psycopg2
  68. copying lib/extras.py -> build/lib.linux-x86_64-3.6/psycopg2
  69. copying lib/__init__.py -> build/lib.linux-x86_64-3.6/psycopg2
  70. copying lib/compat.py -> build/lib.linux-x86_64-3.6/psycopg2
  71. copying lib/_json.py -> build/lib.linux-x86_64-3.6/psycopg2
  72. copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.6/psycopg2
  73. copying lib/tz.py -> build/lib.linux-x86_64-3.6/psycopg2
  74. running build_ext
  75. building 'psycopg2._psycopg' extension
  76. creating build/temp.linux-x86_64-3.6
  77. creating build/temp.linux-x86_64-3.6/psycopg
  78. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120002 -DHAVE_LO64=1 -I/home/avaaren/PY/quiz/env/include -I/usr/include/python3.6m -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.6/psycopg/psycopgmodule.o -Wdeclaration-after-statement
  79. In file included from psycopg/psycopgmodule.c:27:0:
  80. ./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: Нет такого файла или каталога
  81. #include <libpq-fe.h>
  82. ^~~~~~~~~~~~
  83. compilation terminated.
  84.  
  85. It appears you are missing some prerequisite to build the package from source.
  86.  
  87. You may install a binary package by installing 'psycopg2-binary' from PyPI.
  88. If you want to install psycopg2 from source, please install the packages
  89. required for the build and try again.
  90.  
  91. For further information please check the 'doc/src/install.rst' file (also at
  92. <http://initd.org/psycopg/docs/install.html>).
  93.  
  94. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  95.  
  96. ----------------------------------------
  97. Command "/home/avaaren/PY/quiz/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uyzh4vtl/psycopg2/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-3utznznq-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/avaaren/PY/quiz/env/include/site/python3.6/psycopg2" failed with error code 1 in /tmp/pip-build-uyzh4vtl/psycopg2/
Advertisement
Add Comment
Please, Sign In to add comment