상세 컨텐츠

본문 제목

AlreadyExistsError: Another metric with the same name already exists.오류

머신러닝 딥러닝/Tools

by 힐둔 2022. 1. 18. 15:51

본문

 

환경 오류로 "Another metric with the same name already exists." 라는 오류가 뜨는 경우는 keras가 두개 이상 설치되어 있는경우이다. 해결 방법은 keras를 uninstall 하고나서 재 설치 하면 된다. 

 

1. keras를 uninstall 한다.

pip uninstall keras

 

2. 특정 keras 버전을 설치한다. ==는 2.6.0만 설치하라는 구문임.

pip install keras==2.6.0

Another metric with the same name already exists.

 

생각해보니, 초기 설치 시 tensorflow를 conda 명령으로 설치했으나 GPU를 인식하지 못하는 문제로 conda uninsall 하고 다시pip로 keras를 설치 했는데, clean remove가 되지 않은 모양이다. 위 화면을 보면 2.7.0이 깔려 있다. 난 분명 tensorflow를 2.6.0으로 설치 했는데, keras는 왜 2.7.0이 설치 되어 있는 지 모르겠다. 

 

관련글 더보기

댓글 영역