MacOS install Python and pyenv
2021-02-03 07:16
标签:port 成功 start bre pat and 安装pyenv pytho star MacOS install Python and pyenv 标签:port 成功 start bre pat and 安装pyenv pytho star 原文地址:https://www.cnblogs.com/luoxiaolei/p/12804813.html安装
brew install python
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
配置zsh
echo ‘export PYENV_ROOT="$HOME/.pyenv"‘ >> ~/.zshrc
echo ‘export PATH="$PYENV_ROOT/bin:$PATH"‘ >> ~/.zshrc
echo ‘eval "$(pyenv init -)"‘‘ >> ~/.zshenv
echo ‘eval "$(pyenv virtualenv-init -)"‘‘ >> ~/.zshrc
pyenv常用命令
pyenv versions
pyenv version
pyenv global versionCode
pyenv install versionCode
pyenv uninstall versionCode
常见问题
pyenv local --unset
参考链接
上一篇:C 语言标准函数库分类(转)
下一篇:C++ vector遍历方法
文章标题:MacOS install Python and pyenv
文章链接:http://soscw.com/index.php/essay/50317.html