[英]How to properly uninstall pyenv on linux?
I have installed pyenv
on a raspberry pi but now I want to uninstall it.我已经在树莓派上安装了
pyenv
,但现在我想卸载它。
I already ran the command rm -rf $(pyenv root)
but now it says to delete lines from my "shell startup configuration".我已经运行了命令
rm -rf $(pyenv root)
但现在它说要从我的“shell 启动配置”中删除行。 What does it mean?这是什么意思? I found this lines in my
.bash_profile
files:我在我的
.bash_profile
文件中发现了这一行:
if command -v pyenv 1>/dev/null 2>&1; then
eval"$(pyenv init-)"
fi
And in .bashrc
file at the end there is:在最后的
.bashrc
文件中有:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
Should I only delete (or comment with #
) the ones from .bash_profile
?我应该只删除(或用
#
评论)来自.bash_profile
的那些吗? Or maybe from both files?或者可能来自两个文件?
Delete all 5 lines from both files.从两个文件中删除所有 5 行。 Then make sure that in your
.bash_profile
it tells .bashrc
to load然后确保在你的
.bash_profile
中它告诉.bashrc
加载
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.