오랜만에 AWS EC2에 Python을 설치하는데 아래와 같은 에러가 발생한다.
$ pyenv install 3.6.9
Downloading Python-3.6.9.tar.xz...
-> https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz
Installing Python-3.6.9...
BUILD FAILED (Amazon Linux AMI 2018.03 using python-build 1.2.13-4-g6563b64d)
Inspect or clean up the working tree at /tmp/python-build.20190901070310.7044
Results logged to /tmp/python-build.20190901070310.7044.log
Last 10 log lines:
checking for --with-universal-archs... no
checking MACHDEP... linux
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/python-build.20190901070310.7044/Python-3.6.9':
configure: error: no acceptable C compiler found in $PATH
아래와 같이 gcc 설치로 해결하자.
$sudo yum install gcc
'프로그래밍 언어 > Python3' 카테고리의 다른 글
Python.h: No such file or directory 에러 (0) | 2020.03.28 |
---|---|
AWS 아마존 리눅스에 파이썬(Python 3.8) 설치 방법 (0) | 2020.03.28 |
Django 이미 있는 DB 테이블을 models 생성하고 싶을때 (0) | 2020.03.15 |
pip install mysqlclient 에러 / 'mysql.h': No such file or directory (0) | 2020.03.03 |
Django Python3 한글 파일명 다운로드 방법 (0) | 2019.05.24 |