問題描述
我已經安裝了 Miniconda 并將環境變量 export PATH="/home/username/miniconda3/bin:$PATH"
添加到我的 .bashrc
和.bash_profile
但仍然無法在我的終端中運行任何 conda 命令.
I've installed Miniconda and have added the environment variable export PATH="/home/username/miniconda3/bin:$PATH"
to my .bashrc
and .bash_profile
but still can't run any conda commands in my terminal.
我是否錯過了設置中的另一個步驟?順便說一句,我正在使用 zsh.
Am I missing another step in my setup? I'm using zsh by the way.
推薦答案
如果您使用的是 zsh 并且尚未設置為讀取 .bashrc,則需要將 Miniconda 目錄添加到 zsh shell PATH 環境變量中.將此添加到您的 .zshrc
:
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"
確保替換 /home/username/miniconda
為您的實際路徑.
保存,退出終端,然后重新打開終端.conda
命令應該可以工作.
Save, exit the terminal and then reopen the terminal. conda
command should work.
這篇關于未找到 Conda 命令的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!