Conda命令未找到(Conda command not found)

编程入门 行业动态 更新时间:2024-10-25 07:32:43
Conda命令未找到(Conda command not found)

我安装了Miniconda,并在我的.bachrc和.bash_profile添加了环境变量export PATH="/home/username/miniconda3/bin:$PATH" ,但仍然无法在终端中运行任何conda命令。

我错过了另一个设置? 我正在使用zsh。

I've installed Miniconda and have added the environment variable export PATH="/home/username/miniconda3/bin:$PATH" to my .bachrc and .bash_profile but still can't run any conda commands in my terminal.

Am I missing another setup? I'm using zsh by the way.

最满意答案

如果您使用的是zsh,但尚未设置为读取.bashrc,则需要将Miniconda目录添加到zsh shell PATH环境变量中。 将此添加到您的.zshrc :

export PATH="/home/username/miniconda/bin:$PATH"

确保用您的实际路径 替换 /home/username/miniconda 。

保存,退出终端,然后重新打开终端。 conda命令应该可以工作。

If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your .zshrc:

export PATH="/home/username/miniconda/bin:$PATH"

Make sure to replace /home/username/miniconda with your actual path.

Save, exit the terminal and then reopen the terminal. conda command should work.

更多推荐

本文发布于:2023-07-29 18:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318658.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:未找到   命令   Conda   command

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!