Path
Fedora 中 anaconda 的 PATH 變數
在 /opt/anaconda3 中安裝 Anaconda 後,我通過添加 PATH 變數為我的使用者修改了 ~/.bashrc
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User specific aliases and functions export PATH="/opt/anaconda3/bin:$PATH"
但是當我打開終端並輸入
conda list
我明白了
bash: conda: command not found
可能是什麼問題呢?
事實證明,我只需要重新啟動終端,或者輸入
source ~/.bashrc
.