在CentOS 6上安装Python 2.7以及virtualenv环境
PREFIX=/home/admin/huatai
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xfz Python-2.7.18.tgz
cd Python-2.7.18/
./configure --prefix=$PREFIX
make
make installecho "export PATH=$HOME/huatai/bin:$PATH" >> $PREFIX/profile
. $PREFIX/profilepip2 install virtualenvcd /home/admin/huatai.huang
virtualenv -p /home/admin/huatai.huang/bin/python2.7 venv2
. venv2/bin/activateLast updated