let us not love with words or tongue but actions and truth.

IT/파이썬

autogluon 설치 에러 이슈 해결방법

sarah0518 2021. 4. 22. 21:35
728x90

 

Jupyter Notebook에서 autogluon 설치 에러 이슈를 공유해보고자 합니다.

 

(이것 때문에 너무 많은 시간을 뺐겼네요......ㅠㅠ)

 

 

 

 

우선 제가 쓰는 환경은

 

anaconda-client==1.7.2에 파이선 3.6버전 입니다.

 

 

 

 

우선 노트북환경에서

 

!pip install autogluon을 하시면 아래와 같은 에러메세지가 발생합니다.

 

ERROR: Failed building wheel for ConfigSpaceFailed to build ConfigSpace
ERROR: Could not build wheels for ConfigSpace which use PEP 517 and cannot be installed directly

 

 

C++이나 C언어 관련 환경을 돌리기 위해

 

GCC가 미리 설치가 되어야 하는데 그거와 연관된 이슈라고 생각하시면 됩니다.

 

 

 

 

 

 

주피터 노트북에서 아래와 같은 방법으로 침착하게 진행하면 됩니다.

 

1. !sudo apt-get update 를 통한 update

 

2. !sudo apt-get install gcc -y 로 gcc설치

 

3. !pip install autogluon --no-use-pep517 로 위의 에러를 회피하여 autogluon 설치

 

 

 

저는 위의 방법을 통해서 autogluon 설치에 성공했습니다.

 

 

 

 

혹시라도, 위의 3가지 방법으로 설치했는데도 안된다고 한다면!!!

 

 

(옵션) 4. !conda install Cython --y 까지 해보시면 될듯합니다! 

 

 

 

 

아래사이트들은 autogluon관련 에러 검색시 발견 했던 사이트들입니다.

 

참고하실만한 github 내용이 있으니 참고하세요!

 

 

[--no-use-pep517 사용으로 해결한 내용]

 

github.com/dmlc/gluon-cv/issues/1560

 

ERROR: Could not build wheels for ConfigSpace which use PEP 517 and cannot be installed directly · Issue #1560 · dmlc/gluon-cv

Trying to install Gluoncv after getting mxnet-cu101 installed. Using conda and running python 3.7.9 as I had issues with mxnet installing on python >=3.8 due to errors numpy building. Currently ...

github.com

 

 

[gcc 설치 이슈관련 내용]

 

github.com/jupyterhub/jupyterhub/issues/1640

 

Jupyter Notebook and Cython - unable to execute 'gcc': No such file or directory · Issue #1640 · jupyterhub/jupyterhub

Hi, Thank you for the overall great JupyterHub! I am experiencing an issue with Jupyterhub installed with Anaconda3 and systemdspawner. Jupyterhub runs as a systemd service. When I try to run any C...

github.com

 

 

[autogluon 관련 내용]

 

그리고 아래 사이트는 autogluon이 무엇인지에 대한 설명이에요.

 

auto.gluon.ai/stable/index.html#

 

AutoGluon: AutoML for Text, Image, and Tabular Data — AutoGluon Documentation 0.1.0 documentation

 

auto.gluon.ai

 

 

다들 위의 방법으로 에러 없이 잘 설치하시길!!

화이팅!!

728x90