• Home
  • About
    • 朱智博在Github上的Blog photo

      朱智博在Github上的Blog

      朱智博,朱智博的博客,zhuio,zhuio.github.io,

    • Learn More
    • Email
    • Github
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

pyenv

20 Jan 2017

Reading time ~1 minute

pyenv 安装

pyenv github主页

pyenv-installer

Github way (recommended)

Install:

$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash Update:

$ pyenv update Uninstall: pyenv is installed within $PYENV_ROOT (default: ~/.pyenv). To uninstall, just remove it:

$ rm -fr ~/.pyenv and remove these three lines from .bashrc:

export PATH=”~/.pyenv/bin:$PATH” eval “$(pyenv init -)” eval “$(pyenv virtualenv-init -)” If you need, export USE_GIT_URI to use git:// instad of https// for git clone.

设置 pyenv 环境变量

$ cat>>.bashrc<<EOF
export PYENV_ROOT="\$HOME/.pyenv"
export PATH="\$PYENV_ROOT/bin:\$PATH"
eval "\$(pyenv init -)"
eval "\$(pyenv virtualenv-init -)"
EOF

$ source .bashrc


python pyenv Share Tweet +1