본문 바로가기
DevSpace/Python | Django

[Python-Django] mysqlclient 설치시 오류

by 반니루니 2019. 12. 2.
반응형

#Python 버전 : 3.7

#Django 버전 : 2.2.7

Python 및 Django 설치 후 아래와 같이

error 캡처

error : command 'x_86_64-linux-gnu-gcc' failed with exit status 1

에러 문구가 발생합니다. 

 

sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip

 

아마도 위의 패키지중 하나가 설치가 안되었거나 최신버전이 아닌듯 싶습니다.

 

위의 패키지 설치 및 업데이트를 하니 mysqlclient 설치가 정상적으로 완료되었습니다.

 

출처 : https://github.com/scrapy/scrapy/issues/2115

 

' error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ' · Issue #2115 · scrapy/scrapy

I wanted to install scrapy in virtualenv using pip (Python 3.5) but I get the following error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 I tried with Python 2.7 but I get the...

github.com

 

반응형