Install a second Python on CentOS

Install a second Python on CentOS

1.download python

2.install to diff local
configure –prefix=/opt/virtualenv/python
make && make install

3.create virtual env using new python
virtualenv /opt/virtualenv –python=/opt/python276/bin/python

note: if needed it can be done with a different user
chown pyuser -R /opt/virtualenv
su – pyuser
source /opt/virtualenv/bin/activate
python -v

4.Criar virtual env:
virtualenv /opt/virtualenv
su – infograficos
source bin/activate

5. Install pip with python 2.7 (inside virtualenv)
easy_install pip

Leave a Reply

Your email address will not be published. Required fields are marked *

VAMOVE *

*