I've inherited a project on a hosted server and I'm trying to install and import numpy and nltk into the project. The OS is centOs 5.10 and the web app uses web.py. There are two version of python installed on the box both python 2.4 and python 3.3. The default is pointing to version 2.4, "python -V" = python 2.4.3.
I saw a lot of other questions like this but none of them answered the exact part I am having trouble with (actually installing the Python RPM). Someone on my system deleted /usr/bin/python and /usr/bin/python2.4 on my 64 bit CentOS 5.8 installation.
I downloaded python 3.3.0 which is latest version and i finished installing
now I want to run it in my centOS linux but when i type it in console "python" , python 2.7.0 which is bundled with os installation runs.
how can i change it to run 3?
I vaguely feel that i have to change the code about path in bin folder or something
I already searched for solution to my problem via Google and serverfault's search facility, but haven't found anything related specifically to my case.
Here's the problem: I needed python 2.7.3 on CentOS 5.8 machine which has only python 2.4.3 preinstalled. Also neither there's the suitable version in it's repositories nor I can upgrade installed version.
I have a really messed up python installation. I have the preinstalled version of python that comes with os x mavericks. then I installed the homebrew version with brew install python. Then I installed the .dmg python from python.org. Then I deleted all of my local modules in order to do testing with virtualenvs. Then I installed a few back in to make things work.