카테고리 없음

conda command doesn't exist. wsl2. ubuntu

Learever 2023. 3. 31. 10:56

1. Tried to install tensorflow gpu referring to https://www.tensorflow.org/install/pip#windows-wsl2

 

pip로 TensorFlow 설치

이 페이지는 Cloud Translation API를 통해 번역되었습니다. Switch to English pip로 TensorFlow 설치 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 이 가이드는 TensorFlow

www.tensorflow.org

2. Didn't work. As I had to install miniconda, base conda had changed to miniconda (from anaconda). PS. How to switch base conda (https://stackoverflow.com/questions/58131555/how-to-change-the-path-of-conda-base#:~:text=Open%20your%20%2FUsers%2Fyour%20username%2F.&text=There%20would%20be%20the%20paths,to%20path%20mentioned%20in%20~%2F.)

3. Trying to revert it, I erased miniconda related comment in .bashrc. 

4. conda command didn't work (neither in powershell and ubuntu)

5. Tried installing conda again (https://www.how2shout.com/how-to/install-anaconda-wsl-windows-10-ubuntu-linux-app.html)

6. Tried adding path (https://linuxhint.com/conda-command-not-found/)

export PATH=/home/<folder-name>/anaconda3/bin

7. Even when 'conda' works, 'conda activate env' didn't work (CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'). So tried https://stackoverflow.com/questions/61915607/commandnotfounderror-your-shell-has-not-been-properly-configured-to-use-conda

 

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'

I'm trying to create a virtual environment using conda on Google Colaboratory. However, I can't activate with the following error. CommandNotFoundError: Your shell has not been properly configu...

stackoverflow.com

source ~/anaconda3/etc/profile.d/conda.sh
conda activate my_env