Python Portability
W. eWatson
wolftracks at invalid.com
Sat Aug 7 21:10:34 EDT 2010
On 8/7/2010 4:45 PM, Martin v. Loewis wrote:
>> To add to the msg I just sent to M. Torrie. We are given the msi
>> programs for Python, PIL,matplotlib, and numpy. The question of how to
>> uninstall and re-install a different version remains.
>
> I'd claim that this is not the real question. The real question is,
> instead: "What specific error did you get when adding a single minus
> sign to the program?"
>
> Please try answering that question also.
>
>> The answer is?
>
> I'm not sure I understand the question. What do you mean by "given"?
> Perhaps "already downloaded locally"?
>
> If so, the obvious answer is "Go to Add-Remove-Programs. Uninstall.
> Then double-click the MSI files." If that is not a good answer:
> why not?
>
> If you want that automated: write a batch file, invoking "msiexec"
> as necessary.
>
> Regards,
> Martin
>
>
Given. We either download them from various specified sites or newbies
get a CD when they receive hardware that is used by the sponsor's programs.
Add-Remove would be a very good answer, except for one thing. Understand
that I'm in Win7 so CP takes on a different form. On Control Panel
Add-Remove, I can find exactly two Python files: Python 2.5, and
python-Numpy-1.2.0. No scipy anything. Well, this is interesting. I just
noticed Martin v. Loewis on the Python 2.5 entry. That's you, right?
msiexec. Don't need it automated now, but it might be worthwhile, at
some future point.
I think I posted the errors my partner got above. Let me look. Yes,
here's the copy.
He gets
Traceback (most recent call last):
File "C:\Documents and
Settings\HP_Administrator.DavesDesktop\Desktop\NC-FireballReport20100729.py",
line 40, in <module>
from scipy import stats as stats # scoreatpercentile
File "C:\Python25\lib\site-packages\scipy\stats\__init__.py", line 7,
in <module>
from stats import *
File "C:\Python25\lib\site-packages\scipy\stats\stats.py", line 191,
in <module>
import scipy.special as special
File "C:\Python25\lib\site-packages\scipy\special\__init__.py", line
22, in <module>
from numpy.testing import NumpyTest
ImportError: cannot import name NumpyTest
Here are the first few lines of code.
import sys, os, glob
import string
from numpy import *
from datetime import datetime, timedelta
import time
from scipy import stats as stats # scoreatpercentile
More information about the Python-list
mailing list