赞
踩
No command ‘pyenv’ found, did you mean:
Command ‘pyvenv’ from package ‘python3-venv’ (universe)
Command ‘p7env’ from package ‘libnss3-tools’ (universe)
如果你是在root下已经完成把以下代码添加至 .bashrc
export PATH="/home/breavo/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
或者
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv init -)"
fi
只需切换用户,运行命令 su - 用户名
再执行
source ~/.bashrc
即可解决问题
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。