Programming‎ > ‎Python‎ > ‎

01-Install Python


Install python 3.6

1. wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz

2. Install python
tar -xzvf Python-3.6.1.tgz
cd Python-3.6.1
make clean
./configure --prefix=/opt/service/poc/python  --enable-optimizations
make
make test
make install


Install Virtualenv

1. wget https://github.com/pypa/virtualenv/archive/15.1.0.tar.gz

2. Install virtualenv
tar 15.1.0/tar.gz
python virtualenv.py /opt/service/poc/venv3

tar -xzvf virtualenv-15.1.0.tar.gz
cd virtualenv-15.1.0
python3 setup.py install
cd $install_path

virtualenv --python=python python2_venv_path

virtualenv --python=python3 python3_venv_path

References:

Comments