Conda commands not working in Windows Subsystem for Linux (WSL)

独自空忆成欢 提交于 2019-12-11 18:39:58

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/53353415/conda-commands-not-working-in-windows-subsystem-for-linux-wsl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!