我安装了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.
更多推荐
发布评论