Home > HowTo > Install a second Python on CentOS

Install a second Python on CentOS

February 7th, 2014 Leave a comment Go to comments

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

Categories: HowTo Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*