I installed Anaconda3 in my windows environment and added
C:\Users\user\Anaconda3\Scripts
C:\Users\user\Anaconda3
to my windows environmental variables. Theoretically, this should also update my path in WSL like it does with visual studio code. However it didn't and now I can't run conda commands from the ubuntu terminal. I can't figure out how to fix this...thanks!
*It should be noted that I am also using zsh and oh my zsh by running the code
# Launch Zsh
if [ -t 1 ]; then
exec zsh
fi
Inside my bashrc file
I had a similar problem. The issue was, that I had installed conda for windows and it seems it doesn't run fine with wsl
. Try downloading and installing conda for ubuntu from the wsl
command line interface and add the folders to the path. It worked for me.
This link helped me download conda from wsl command life interface.
If path not added, export PATH="/Users/username/anaconda/bin:$PATH" to your .zsh_config file.
This link may help you Zsh: Conda/Pip installs command not found
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.