前因:要求我用 anaconda 开发
操作:
选择环境--
/opt/anaconda3/bin/activate && conda activate /opt/anaconda3/envs/text2sql
遇到的问题:
conda list 存在的包,在命令行里使用就找不到了
unicorn main:app --reload
zsh: command not found: unicorn
这个问题很基础但是真的折腾我一上午了,查了好多方法都没有效果,还是没有找到问题所在
只好上来求助请各位帮忙看一下
下面是我的 .zshrc 配置:
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/bin:$PATH"
export PATH="/usr/sbin:$PATH"
export PATH="/bin:$PATH"
export PATH="/sbin:$PATH"
export PATH=${PATH}:/usr/local/mysql/bin/
export HOMEBREW_BOTTLE_DOMAIN=
https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottlesalias python=/usr/bin/python3
___MY_VMOPTIONS_SHELL_FILE="${HOME}/.jetbrains.vmoptions.sh"; if [ -f "${___MY_VMOPTIONS_SHELL_FILE}" ]; then . "${___MY_VMOPTIONS_SHELL_FILE}"; fi
eval "$(starship init zsh)"
eval "$(pyenv init -)"
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
#Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
source ~/.bash_profile
source /etc/profile
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/anaconda3/etc/profile.d/
conda.sh" ]; then
. "/opt/anaconda3/etc/profile.d/
conda.sh"
else
export PATH="/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<