pyenv

创建: 2021/04/20

完成: 2021/04/20

 

参考: https://chamikakasun.medium.com/how-to-manage-multiple-python-versions-in-macos-2021-guide-f86ef81095a6

       official instruction

就是rbenv改的. 和jenv也差不多.

吐槽下, 这东西不愧是从rbenv改的,rbenv祖传的ruby安装慢的问题到了python简直是一毛一样😂

 

Installation

 

brew install pyenv

 

 

Commands
pyenv commands list all commands
pyenv local

set a local-specific python version by passing arguments as versions(single or multiple)

if no argument passed, just get the current setteing of local version

pyenv global

set a global-specific python version by passing arguments as versions(single or multiple)

if no argument passed, just get the current glocal version setting

pyenv shell

... shell-specific ...

...

 

● priorities: shell > local > global

pyenv install

install the specified version of python

● -l/--list: list all available versions

pyenv uninstall uninstall a specific python version
pyenv rehash installs shims for all python binaries known to pyenv
pyenv version displays the current active python version, along with information how it was set
pyenv versions lists all versions known to pyenv, and show an asterisk next to the currently active version
pyenv which displays the full path of specified version
pyenv whence lists all python versions with given command installed

 

   
   
   
   
   
posted @ 2021-04-20 04:12  懒虫哥哥  阅读(79)  评论(0编辑  收藏  举报