export PATH="/home/kongxx/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
$ pyenv versions * system (set by /home/kongxx/.pyenv/version)
$ pyenv install -l Available versions: 2.1.3 2.2.3 2.3.7 2.4 2.4.1 ...
$ pyenv install 2.7.10 Downloading Python-2.7.10.tar.xz... -> https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz Installing Python-2.7.10... patching file ./Lib/site.py Installed Python-2.7.10 to /home/kongxx/.pyenv/versions/2.7.10 $ pyenv install 3.2.1 ...
$ pyenv versions * system (set by /home/kongxx/.pyenv/version) 2.7.10 3.2.1
$ pyenv global 3.2.1 $ python -V Python 3.2.1
$ pyenv version 3.2.1 (set by /home/kongxx/.pyenv/version) $ pyenv versions system 2.7.10 * 3.2.1 (set by /home/kongxx/.pyenv/version)
$ pyenv virtualenv 3.2.1 myenv $ pyenv versions system 2.7.10 * 3.2.1 (set by /home/kongxx/.pyenv/version) 3.2.1/envs/myenv myenv
$ pyenv activate myenv $ pyenv versions system 2.7.10 3.2.1 3.2.1/envs/myenv * myenv (set by PYENV_VERSION environment variable)
$ pyenv virtualenv-delete myenv
以上就是pyenv管理多个版本python环境的详解的详细内容,更多请关注Gxl网其它相关文章!
查看更多关于pyenv管理多个版本python环境的详解的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did84354