# from Gravunder Greg-CDIG04 # on Wednesday 31 October 2007 08:38: >The problem is that when I run this, it is using python version 2.2.3 >which doesn't have the Numeric module. The numeric module does exist > in 2.4.2. If I source that environment before I run the perl script, > I get version 2.4.2 when I run the python script standalone and 2.2.3 > when I run the perl script. > >Is there anyway to tell Inline what version of python I want to use?
You'll need to recompile Inline::Python. It doesn't *call* /usr/bin/python from within your perl code, instead, it has compiled some xs with an embedded python interpreter. When you run Makefile.PL, it looks for the first python in your path (and/or prompts you about which to use) and then queries that python for the C library paths which get used for linking into the xs. So, if you need to switch back and forth, you need to build multiple Inline::Python's and deal with it via $PERL5LIB, etc. --Eric -- The only thing that could save UNIX at this late date would be a new $30 shareware version that runs on an unexpanded Commodore 64. --Don Lancaster (1991) --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------