본문 바로가기
Error/Python

[Python3_Error] conda(콘다) 환경변수 설정

by Rising One★ 2022. 10. 18.
728x90
반응형
SMALL

상황

  1. MLFlow (MLOps API) 관련 conda.yaml 파일에 대해 작업을 이어가던 중이었습니다.
  2. 아래와 같은 conda 관련 에러 발생했습니다.
Could not find Conda executable at conda. Ensure Conda is installed as per the instructions at https://conda.io/projects/conda/en/latest/user-guide/install/index.html. You can also configure MLflow to look for a specific Conda executable by setting the MLFLOW_CONDA_HOME environment variable to the path of the Conda executable

해석

conda에서 실행 가능한 Conda를 찾을 수 없습니다. https://conda.io/projects/conda/en/latest/user-guide/install/index.html의 지침에 따라 Conda가 설치되었는지 확인합니다. MLFLOW_CONDA_HOME 환경 변수를 Conda 실행 파일의 경로로 설정하여 특정 Conda 실행 파일을 찾도록 MLflow를 구성할 수도 있습니다.
  • 환경변수를 설정해줄 필요가 있음을 인식했습니다.

해결

  1. 시스템 환경 변수( > 사용자변수 > path )를 바꿔준다
  • 접근방법 (Windows 키 + r) > 'sysdm.cpl ,3'을 입력 > 시스템 속성 창
  1. PC 내 Anaconda가 설치되어 있는 경로를 찾아 들어간다.
  • ( 내경로\Anaconda )
  1. "Anaconda", "Library", "Scripts" 로 끝나는 '폴더'들의 경로를 복사해 환경변수에 추가해준다.
  • 추가적으로 '상단으로 이동'을 시켜주면 관련 파일을 읽어내는 데 이점을 갖는다. 
  • 내경로\Anaconda 내경로\Anaconda\Library 내경로\Anaconda\Scripts
728x90
반응형
LIST

댓글