The first thing I did was to create a wwwuser that I plan to run pyramid under. As a result, I am intentionally installing Python 2.7.2 under only 1 user account, and am leaving the system wide python installation unchanged.
useradd wwwuser
passwd wwwuser
cd /home
mkdir wwwuser
chown wwwuser:wwwuser wwwuser
Copy all of the hidden files into the /home/wwwuser folder. I did this from my desktop files.
vi /etc/passwd
Update the shell to be:
/bin/bash
su - wwwuser
ln -s .profile .bash_profile
mkdir bin
mv Python-2.7.2.tgz bin
cd bin
tar -xzf Python-2.7.2.tgz
cd Python-2.7.2
./configure --prefix /home/wwwuser/bin/Python-2.7.2
make
make install
vi ~/.profile
Update path to:
PATH="$HOME/bin:/home/wwwuser/bin/Python-2.7.2/bin:$PATH"
source ~/.profile
which python
/home/wwwuser/bin/Python-2.7.2/bin/python
python --version
The output of the python --version
command should now be Python 2.7.2.
