On 12/5/10 6:18 PM, James Thiele wrote:
You might want to look into 'virtualenv', which sets up a self contained
python install.

Hey people, does virtualenv work on XP?

yes.

And it may be a good idea, but it's not directly the OP's problem:

On Sun, Dec 5, 2010 at 5:56 PM, James Fort <[email protected]
    I've recently run into a Python issue.  I hope that posting a
    question here is appropriate.

of course, though a broader audience might be useful if we can't help!

    My company's software is distributed with a special Python build
    that includes some custom packages.

Where is that Python build installed? I sure hope it's not in the "standard" place -- i.e. where the python.org install goes -- it's really annoying when folks somehow assume that their software is the only thing that's going to use Python.

 I didn't want to mess with that
    install so I additionally installed Python 2.6.6 on my machine
    (Windows XP 32-bit) for experimentation purposes.

But in any case -- you should be able to have multiple installs.

 I noticed that I
    can run a script that I've written from a prompt with my company's
    distribution of Python using:

     >special python scriptName.py

    (where special is a prefix typed at the command prompt to identify
    this special installation of Python and not the generic 2.6.6
    installation)

is "special" something that your company's software provides?

    However, if I try the same with Python 2.6.6, it simply opens the
    Python interpreter:

     >python scriptName.py
    Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit
    (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.

OK -- that's weird -- that certainly should run scriptName.py. Are you sure that you are getting the regular build you installed? You might try doing something like:

import sys
print sys.path

it will give you an idea what python is running.

what do you get when you type:

"python -h"

at the command line? It shoudl give you python's help message.

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

Reply via email to