오류 : eventlet을 설치하는 동안 'gcc'명령이 종료 상태 1로 실패했습니다.
eventlet
소프트웨어 배포를 위해 "허리"를 갖기 위해 시스템에 설치하려고 했지만 터미널에 gcc 오류가 표시됩니다.
root@agrover-OptiPlex-780:~# easy_install -U eventlet
Searching for eventlet
Reading http://pypi.python.org/simple/eventlet/
Reading http://wiki.secondlife.com/wiki/Eventlet
Reading http://eventlet.net
Best match: eventlet 0.9.16
Processing eventlet-0.9.16-py2.7.egg
eventlet 0.9.16 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg
Processing dependencies for eventlet
Searching for greenlet>=0.3
Reading http://pypi.python.org/simple/greenlet/
Reading https://github.com/python-greenlet/greenlet
Reading http://bitbucket.org/ambroff/greenlet
Best match: greenlet 0.3.4
Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet- 0.3.4.zip#md5=530a69acebbb0d66eb5abd83523d8272
Processing greenlet-0.3.4.zip
Writing /tmp/easy_install-_aeHYm/greenlet-0.3.4/setup.cfg
Running greenlet-0.3.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_aeHYm/greenlet-0.3.4/egg-dist-tmp-t9_gbW
In file included from greenlet.c:5:0:
greenlet.h:8:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1`
왜 Python.h
찾을 수 없습니까?
파이썬 개발 헤더가 설치되어 있지 않아 설치에 실패했습니다. 우분투 / 데비안에서 apt를 통해 다음을 수행 할 수 있습니다.
sudo apt-get install python-dev
python3 사용시 :
sudo apt-get install python3-dev
eventlet의 경우 libevent 라이브러리를 설치해야 할 수도 있습니다. 따라서 오류가 발생하면 다음과 같이 libevent를 설치할 수 있습니다.
sudo apt-get install libevent-dev
페도라 :
sudo yum install python-devel
sudo yum install libevent-devel
그리고 마지막으로:
sudo easy_install gevent
위의 모든 답변을 시도했습니다. 그러나 나를 위해 일한 것은 CentOS 였습니다 .
sudo yum -y install gcc
sudo yum install python-devel
Redhat 버전 (Centos 7)의 경우 아래 명령을 사용하여 Python Development Package를 설치하십시오.
파이썬 2.7
sudo yum 설치 python-dev
파이썬 3.4
sudo yum install python34-devel
그래도 문제가 해결되지 않으면 아래 패키지를 설치하십시오-
sudo yum install python-devel
sudo yum 설치 openssl-devel
sudo yum 설치 libffi-devel
에 맥 OS 나는 문제가 설치 한 fbprophet
필요로 pystan
요구하는 gcc
컴파일합니다. 일관되게 같은 오류가 발생합니다 : 'gcc'명령이 종료 상태 1에서 실패했습니다.
나는 그렇게 스스로 문제를 해결했다고 생각한다.
나는 brew install gcc
최신 버전을 설치했었다.gcc-8
그런 다음 gcc
실행 했을 때 gcc-8
대신 사용 되는지 확인했습니다 .
alias gcc='gcc-8
내 추가 .zshrc
( zsh 와 동일 .bashrc
하지만 ) 또는 실행했기 때문에 작동했습니다 ( comment 참조 )export PATH=/usr/local/bin:$PATH
Also: all my attempts were inside a virtual environment and I only succeeded by installing fbprophet
globally (with pip), but still no success inside a venv
For CentOS 7.2:
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.2.1511 (Core)
Release: 7.2.1511
Codename: Core
Install eventlet:
sudo yum install python-devel
sudo easy_install -ZU eventlet
Terminal info:
[root@localhost ~]# easy_install -ZU eventlet
Searching for eventlet
Reading http://pypi.python.org/simple/eventlet/
Best match: eventlet 0.19.0
Downloading https://pypi.python.org/packages/5a/e8/ac80f330a80c18113df0f4f872fb741974ad2179f8c2a5e3e45f40214cef/eventlet-0.19.0.tar.gz#md5=fde857181347d5b7b921541367a99204
Processing eventlet-0.19.0.tar.gz
Running eventlet-0.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Hh9GQY/eventlet-0.19.0/egg-dist-tmp-rBFoAx
Adding eventlet 0.19.0 to easy-install.pth file
Installed /usr/lib/python2.6/site-packages/eventlet-0.19.0-py2.6.egg
Processing dependencies for eventlet
Finished processing dependencies for eventlet
For openSUSE 42.1 Leap Linux use this
sudo zypper install python3-devel
try this :
sudo apt-get install libblas-dev libatlas-base-dev
I had a similar issue on Ubuntu 14.04. For me the following Ubuntu packages
This is an old post but I just run to the same problem on AWS EC2 installing regex. This working perfectly for me
sudo yum -y install gcc
and next
sudo yum -y install gcc-c++
Build from source and install, this is fixed in the latest release (10.3+):
mkdir -p /tmp/install/netifaces/
cd /tmp/install/netifaces && wget -O "netifaces-0.10.4.tar.gz" "https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz#md5=36da76e2cfadd24cc7510c2c0012eb1e"
tar xvzf netifaces-0.10.4.tar.gz
cd netifaces-0.10.4 && python setup.py install
'Programing' 카테고리의 다른 글
여러 열의 고유성 확인 (0) | 2020.05.15 |
---|---|
CSS-테이블 내부에만 테두리 (0) | 2020.05.15 |
파이썬에서 max-heap 구현에 무엇을 사용합니까? (0) | 2020.05.15 |
최근 SVN 로그 항목은 어떻게 보입니까? (0) | 2020.05.15 |
데이터 손실없이 SQL 데이터베이스에서 열 데이터 유형을 변경하는 방법 (0) | 2020.05.14 |