Conda命令在Windows Subsystem for Linux(WSL)中不起作用 [英] Conda commands not working in Windows Subsystem for Linux (WSL)

查看:473
本文介绍了Conda命令在Windows Subsystem for Linux(WSL)中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows环境中安装了Anaconda3,并添加了

I installed Anaconda3 in my windows environment and added

C:\Users\user\Anaconda3\Scripts
C:\Users\user\Anaconda3

我的Windows环境变量.从理论上讲,这也应该像在Visual Studio代码中一样,在WSL中更新我的路径.但是没有,现在我不能从ubuntu终端运行conda命令.我不知道该如何解决...谢谢!

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!

*应该注意的是,我还通过运行代码来使用zsh和哦,我的zsh

*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

在我的bashrc文件中

Inside my bashrc file

推荐答案

如果未添加路径,请将PATH ="/Users/username/anaconda/bin:$ PATH"导出到您的.zsh_config文件.

If path not added, export PATH="/Users/username/anaconda/bin:$PATH" to your .zsh_config file.

此链接可能对您有帮助 ​​ Zsh:找不到Conda/Pip安装命令

This link may help you Zsh: Conda/Pip installs command not found

这篇关于Conda命令在Windows Subsystem for Linux(WSL)中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆