【发布时间】:2021-09-17 12:51:10
【问题描述】:
由于错误的原因,我通过运行pyenv update 更新了我的 pyenv,之后每次打开新控制台时都会出现此错误
WARNING: `pyenv init -` no longer sets PATH.
Run `pyenv init` to see the necessary changes to make to your configuration.
我已尝试将其添加到我的 .zshrc 中:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init --path)"
fi
这是在其他帖子和问题中推荐的,但在这种情况下,我收到了另一条错误消息:
Failed to initialize virtualenvwrapper.
Perhaps pyenv-virtualenvwrapper has not been loaded into your shell properly.
Please restart current shell and try again.
更多信息:
系统:MacOS Catalina 10.15.7 Pyenv 2.0.2 版
谢谢大家
【问题讨论】:
标签: python macos virtualenv virtualenvwrapper pyenv