Select to view content in your preferred language

scipy install

4069
7
08-17-2010 06:11 AM
MikeTischler
Emerging Contributor
hi,
Has anyone tried installing the SciPy python module in ArcGIS 10 and had success?  I downloaded the appropriate package from sourceforge (http://sourceforge.net/projects/scipy/files/), and ran the installer.

I get no error in the python command line when I 'import scipy', but my python shell will crash if I try an operation (scipy.misc.factorial(4) for example).
0 Kudos
7 Replies
ChrisMathers
Deactivated User
Are you sure the once you downloaded is for python 2.6? Thats the only thing I can think of.
0 Kudos
MikeTischler
Emerging Contributor
yep - I used this one

http://sourceforge.net/projects/scipy/files/scipy/0.8.0/scipy-0.8.0-win32-superpack-python2.6.exe/do...

Are there other dependencies that I don't know about?

thanks!
mike
0 Kudos
DanPatterson_Retired
MVP Emeritus
could it have anything to do with the fact that the 2.6 version of Python is installed in a path such as
c:\Python26\ArcGIS10.0.......
and not what you would expect from a straight Python install, perhaps SciPy expects a normal install path
0 Kudos
MikeTischler
Emerging Contributor
To test that, I'd probably need to reinstall python, huh...

Has anyone been able to successfully install it and run a function, or is it just me?

Doesn't look like ArcGIS gives you the option of specifying a different folder for python to install.
0 Kudos
DanPatterson_Retired
MVP Emeritus
I was more questioning what SciPy expected in terms of default installation paths
0 Kudos
MikeTischler
Emerging Contributor
During the scipy install the setup procedure automatically found the python install in the C:\python26\ArcGIS10.0 folder, and chose it as the default install directory. 

Wish I knew enough about how python is integrated with ArcGIS to figure this out...

thanks,
mike
0 Kudos
CharlesMorton
Occasional Contributor
I was having the same problem with using SciPy functions. 

It seems the problem is that SciPy 0.8 needs NumPy 1.4.1 or newer (look at the INSTALL.txt in Python\Lib\site-packages\scipy).  I installed NumPy 1.5 on top of the NumPy 1.3 install that comes with Arc10 and everything seems to be working.  You could probably also try installing an older version of SciPy.

I'm sure there is some reason not to do this, but for now it works.
0 Kudos