RHEL의 가상 환경에 psycopg2 설치 실패

Ambrose Ariagiegbe

나는 며칠 동안 이것을 해왔다. RHEL VPS의 가상 환경에 psycopg2를 설치하려고 할 때마다 다음 오류와 함께 실패합니다. 단서가있는 사람은 누구든지 도와주세요. 감사.

(pyenv)[root@10 pyenv]# pip install psycopg2==2.5.4
 Collecting psycopg2==2.5.4
  Using cached psycopg2-2.5.4.tar.gz
  /tmp/pip-build-Vn6ET9/psycopg2/setup.py:12: DeprecationWarning: Parameters                                                                                                  to load are deprecated.  Call .resolve and .require separately.
  # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
Installing collected packages: psycopg2
Running setup.py install for psycopg2
building 'psycopg2._psycopg' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=                                                                                         2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic                                                                                          -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2                                                                                          -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -                                                                                         D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSI                                                                                         ON="2.5.4 (dt dec pq3 ext)" -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHA                                                                                         VE_PQFREEMEM=1 -DPG_VERSION_HEX=0x080414 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_B                                                                                         OOLEAN=1 -DHAVE_PQFREEMEM=1 -I/usr/include/python2.6 -I. -I/usr/include -I/usr/                                                                                         include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.6/                                                                                         psycopg/psycopgmodule.o -Wdeclaration-after-statement
unable to execute gcc: No such file or directory
error: command 'gcc' failed with exit status 1
Complete output from command /root/pyenv/bin/python -c "import setuptools,                                                                                          tokenize;__file__='/tmp/pip-build-Vn6ET9/psycopg2/setup.py';exec(compile(getatt                                                                                         r(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'ex                                                                                         ec'))" install --record /tmp/pip-9d8Iwo-record/install-record.txt --single-vers                                                                                         ion-externally-managed --compile --install-headers /root/pyenv/include/site/pyt                                                                                         hon2.6:
running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.6

creating build/lib.linux-x86_64-2.6/psycopg2

copying lib/psycopg1.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/extras.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/__init__.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/_json.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/pool.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/errorcodes.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/extensions.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/_range.py -> build/lib.linux-x86_64-2.6/psycopg2

copying lib/tz.py -> build/lib.linux-x86_64-2.6/psycopg2

creating build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_copy.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_notify.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_quote.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/dbapi20.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_lobject.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_bug_gc.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-2.6/psycop                                                                                         g2/tests

copying tests/testutils.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_cursor.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/__init__.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_bugX000.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_types_basic.py -> build/lib.linux-x86_64-2.6/psycopg2/te                                                                                         sts

copying tests/test_connection.py -> build/lib.linux-x86_64-2.6/psycopg2/tes                                                                                         ts

copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-2.6/psyco                                                                                         pg2/tests

copying tests/test_transaction.py -> build/lib.linux-x86_64-2.6/psycopg2/te                                                                                         sts

copying tests/test_module.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_dates.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/testconfig.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_cancel.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_async.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_with.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_green.py -> build/lib.linux-x86_64-2.6/psycopg2/tests

copying tests/test_types_extras.py -> build/lib.linux-x86_64-2.6/psycopg2/t                                                                                         ests

running build_ext

building 'psycopg2._psycopg' extension

creating build/temp.linux-x86_64-2.6

creating build/temp.linux-x86_64-2.6/psycopg

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=                                                                                         2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic                                                                                          -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2                                                                                          -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -                                                                                         D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSI                                                                                         ON="2.5.4 (dt dec pq3 ext)" -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHA                                                                                         VE_PQFREEMEM=1 -DPG_VERSION_HEX=0x080414 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_B                                                                                         OOLEAN=1 -DHAVE_PQFREEMEM=1 -I/usr/include/python2.6 -I. -I/usr/include -I/usr/                                                                                         include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.6/                                                                                         psycopg/psycopgmodule.o -Wdeclaration-after-statement

unable to execute gcc: No such file or directory

error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/root/pyenv/bin/python -c "import setuptools, tokenize;__file__='/                                                                                         tmp/pip-build-Vn6ET9/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open',                                                                                          open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --rec                                                                                         ord /tmp/pip-9d8Iwo-record/install-record.txt --single-version-externally-manag                                                                                         ed --compile --install-headers /root/pyenv/include/site/python2.6" failed with                                                                                          error code 1 in /tmp/pip-build-Vn6ET9/psycopg2
Ambrose Ariagiegbe

내 길을 찾았습니다. 전 세계적으로 성공적으로 설치되었음을 알았습니다. 그래서 전 세계적으로 psycopg2를 설치하고 --system-site-packages옵션 으로 새로운 가상 환경을 만들었습니다 . 그런 다음 -I옵션을 사용하여 다른 패키지를 설치했습니다 .

이것이 다른 사람에게 도움이되기를 바랍니다.

확인. 나중에 gcc설치 하지 않았다는 것을 알게 되었습니다. 그래서 먼저 설치해야했습니다. 그 후 pip install psycopg2. 방향을 알려 주셔서 감사합니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

우분투 OS의 가상 환경에 psycopg2 설치

분류에서Dev

macOS에서 psycopg2 설치 실패

분류에서Dev

PostgreSQL 12.1이 설치된 MacOS catalina의 virtualenv에 psycopg2를 설치하는 데 문제가 있습니까?

분류에서Dev

PyCharm의 가상 환경에 PycURL 설치

분류에서Dev

Ubuntu 14.10에 psycopg2 설치

분류에서Dev

MacOS 10.9.5에 Psycopg2 설치 오류

분류에서Dev

Windows 10에서 종료 상태 1120으로 Psycopg2가 실패했습니다.

분류에서Dev

우분투 14.04에 psycopg2를 설치하는 가장 좋은 방법

분류에서Dev

RHEL에서 Chef 서버 설치 실패

분류에서Dev

RHEL 7에서 Ansible 설치 실패

분류에서Dev

psycopg2에 삽입 된 여러 행의 ID 가져 오기

분류에서Dev

새 Docker 컨테이너에 psycopg2-binary 설치 실패

분류에서Dev

Mac에 psycopg2를 설치하는 방법 (pg_config 실행 파일을 찾을 수 없음 오류)

분류에서Dev

가상 상자에 Kali 2.0 설치 실패

분류에서Dev

Debian Wheezy의 GitLab 설치가 initctl 요구에 실패 함

분류에서Dev

psycopg2에서 SQL 파일 실행

분류에서Dev

conda의 가상 환경에서 Anaconda를 설치하는 방법.

분류에서Dev

macOS 10.15에 psycopg2 python 3.7 설치 오류

분류에서Dev

'휠'에서 설치할 때 psycopg2 모듈로드 오류

분류에서Dev

가상 환경 OSX에 libmxl2 설치

분류에서Dev

Mac에서 PyAudio 설치가 항상 실패 함

분류에서Dev

Nokogiri가 Ubuntu 20.04에서 설치 실패

분류에서Dev

가상 머신의 우분투 13.10에서 Apt-get 업데이트 및 설치 실패

분류에서Dev

Rhel 6에서 gcc-4.7.2 설치 실패

분류에서Dev

RHEL7.5에서 VirtualBox GuestAdditions 5.2.18 설치 실패

분류에서Dev

오늘 밤 이후 RHEL 7에 Docker CE 설치 실패

분류에서Dev

python2에서 pip 설치 실패

분류에서Dev

sudo를 사용하여 가상 환경에 Python 패키지 설치

분류에서Dev

sudo를 사용하여 가상 환경에 Python 패키지 설치

Related 관련 기사

  1. 1

    우분투 OS의 가상 환경에 psycopg2 설치

  2. 2

    macOS에서 psycopg2 설치 실패

  3. 3

    PostgreSQL 12.1이 설치된 MacOS catalina의 virtualenv에 psycopg2를 설치하는 데 문제가 있습니까?

  4. 4

    PyCharm의 가상 환경에 PycURL 설치

  5. 5

    Ubuntu 14.10에 psycopg2 설치

  6. 6

    MacOS 10.9.5에 Psycopg2 설치 오류

  7. 7

    Windows 10에서 종료 상태 1120으로 Psycopg2가 실패했습니다.

  8. 8

    우분투 14.04에 psycopg2를 설치하는 가장 좋은 방법

  9. 9

    RHEL에서 Chef 서버 설치 실패

  10. 10

    RHEL 7에서 Ansible 설치 실패

  11. 11

    psycopg2에 삽입 된 여러 행의 ID 가져 오기

  12. 12

    새 Docker 컨테이너에 psycopg2-binary 설치 실패

  13. 13

    Mac에 psycopg2를 설치하는 방법 (pg_config 실행 파일을 찾을 수 없음 오류)

  14. 14

    가상 상자에 Kali 2.0 설치 실패

  15. 15

    Debian Wheezy의 GitLab 설치가 initctl 요구에 실패 함

  16. 16

    psycopg2에서 SQL 파일 실행

  17. 17

    conda의 가상 환경에서 Anaconda를 설치하는 방법.

  18. 18

    macOS 10.15에 psycopg2 python 3.7 설치 오류

  19. 19

    '휠'에서 설치할 때 psycopg2 모듈로드 오류

  20. 20

    가상 환경 OSX에 libmxl2 설치

  21. 21

    Mac에서 PyAudio 설치가 항상 실패 함

  22. 22

    Nokogiri가 Ubuntu 20.04에서 설치 실패

  23. 23

    가상 머신의 우분투 13.10에서 Apt-get 업데이트 및 설치 실패

  24. 24

    Rhel 6에서 gcc-4.7.2 설치 실패

  25. 25

    RHEL7.5에서 VirtualBox GuestAdditions 5.2.18 설치 실패

  26. 26

    오늘 밤 이후 RHEL 7에 Docker CE 설치 실패

  27. 27

    python2에서 pip 설치 실패

  28. 28

    sudo를 사용하여 가상 환경에 Python 패키지 설치

  29. 29

    sudo를 사용하여 가상 환경에 Python 패키지 설치

뜨겁다태그

보관