标签:nbsp exec 创建 open init roo path git clone ;;
yum -y install gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel bzip2-libs yum install -y net-tools vim lrzsz tree screen lsof tcpdump nmap sysstat dos2unix
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo ‘export PYENV_ROOT="$HOME/.pyenv"‘ >> ~/.bashrc echo ‘export PATH="$PYENV_ROOT/bin:$PATH"‘ >> ~/.bashrc
echo ‘eval "$(pyenv init -)"‘ >> ~/.bashrc
exec $SHELL source ~/.bashrc
pyenv install --list pyenv install 2.7.13
pyenv uninstall 2.7.13
pyenv global 2.7.13
pyenv local 2.7.13
pyenv version
pyenv versions
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo ‘eval "$(pyenv virtualenv-init -)"‘ >> ~/.bashrc source ~/.bashrc
pyenv virtualenv 2.7.13 testvir
pyenv activate testvir
pyenv deactivate
pyenv virtualenv-delete testvir
centos6 pyenv和virtualenv搭建python虚拟环境
标签:nbsp exec 创建 open init roo path git clone ;;
原文地址:http://www.cnblogs.com/shhnwangjian/p/6364951.html