본문 바로가기

hacking or software engineering skills/etc

conda error

반응형

pyenv와 conda를 동시에 설치했을 때 나는 에러

pyenv: conda: command not found

The `conda' command exists in these Python versions:
  anaconda3-5.3.1

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.

 

해결책

pyenv virtualenvs를 입력한다.

원하는 conda 가상환경 이름을 확인한다.

나의 경우 pyenv activate anaconda3-5.3.1/envs/torch를 입력했다.

conda info --envs를 할 경우 정상 작동함을 확인 가능.

결론

pyenv activate가 conda 보다 먼저다!

반응형