Prev: what are some good python modules?
Next: Good solutions for passing around large numbers of argumentsin a layered architecture?
From: Alexzive on 14 Jun 2010 04:30 Hello there, my Mandriva has the 2.6.4 python pre-installed (in /usr/lib64/ python2.6/) I need to install numpy 1.4 for python 2.4.3 (I installed it separately from source on/usr/local/lib/python2.4/ ) but still typing "python" I get: Python 2.6.4 (r264:75706, Jan 8 2010, 18:59:59) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> what to change in order to get "python" calling python 2.4.3 instead of 2.6.4 (at least during python setup.py build)? I suppose I need something like changing the link to /usr/local/bin/ python.. but I fear to do something bad by myself.. please help!
From: James Mills on 14 Jun 2010 04:52 On Mon, Jun 14, 2010 at 6:30 PM, Alexzive <zasaconsulting(a)gmail.com> wrote: > what to change in order to get "python" calling python 2.4.3 instead > of 2.6.4 (at least during python setup.py build)? > > I suppose I need something like changing the link to /usr/local/bin/ > python.. > but I fear to do something bad by myself.. > please help! Just run the python-2.4 binary. There will likely be a /usr/bin/python-2.4 or similar. cheers James -- -- -- "Problems are solved by method"
From: Steven D'Aprano on 14 Jun 2010 05:00 On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: > what to change in order to get "python" calling python 2.4.3 instead of > 2.6.4 (at least during python setup.py build)? That will do bad things to your system, which will be expecting the system Python to be 2.6 and instead will be 2.4. You will probably find system tools will start to fail. > I suppose I need something like changing the link to /usr/local/bin/ > python.. > but I fear to do something bad by myself.. please help! Yes, that will do it, but if you do, you will probably break things. Best to just call the python2.4 binary directly. If you call python2.4 from the command line, what happens? -- Steven
From: Alexzive on 14 Jun 2010 06:09 thanks guys, the solution for me was python2.4 setup.py install --prefix=/usr/local cheers, AZ On Jun 14, 11:00 am, Steven D'Aprano <st...(a)REMOVE-THIS- cybersource.com.au> wrote: > On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: > > what to change in order to get "python" calling python 2.4.3 instead of > > 2.6.4 (at least during python setup.py build)? > > That will do bad things to your system, which will be expecting the > system Python to be 2.6 and instead will be 2.4. You will probably find > system tools will start to fail. > > > I suppose I need something like changing the link to /usr/local/bin/ > > python.. > > but I fear to do something bad by myself.. please help! > > Yes, that will do it, but if you do, you will probably break things. Best > to just call the python2.4 binary directly. > > If you call > > python2.4 > > from the command line, what happens? > > -- > Steven
From: Benjamin Kaplan on 14 Jun 2010 11:11
On Mon, Jun 14, 2010 at 3:09 AM, Alexzive <zasaconsulting(a)gmail.com> wrote: > thanks guys, > > the solution for me was > > python2.4 setup.py install --prefix=/usr/local > > cheers, AZ > Don't do that! Like Steven said, you'll kill your system that way. Lots of programs in Linux use Python and those programs expect /usr/bin/env python to map to python2.6. Other versions of Python should be referenced by the version: so python2.4 for Python 2.4, python3 or python3.1 if you decide to install Python 3.1. > On Jun 14, 11:00 am, Steven D'Aprano <st...(a)REMOVE-THIS- > cybersource.com.au> wrote: >> On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: >> > what to change in order to get "python" calling python 2.4.3 instead of >> > 2.6.4 (at least during python setup.py build)? >> >> That will do bad things to your system, which will be expecting the >> system Python to be 2.6 and instead will be 2.4. You will probably find >> system tools will start to fail. >> >> > I suppose I need something like changing the link to /usr/local/bin/ >> > python.. >> > but I fear to do something bad by myself.. please help! >> >> Yes, that will do it, but if you do, you will probably break things. Best >> to just call the python2.4 binary directly. >> >> If you call >> >> python2.4 >> >> from the command line, what happens? >> >> -- >> Steven > > -- > http://mail.python.org/mailman/listinfo/python-list > |