前因:要求我用 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 <<<
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/1032920
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.