Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor II
1,460 Views

How to install scipy?

I tried installing scipy (numpy is installed by default). I'm using the eglibc.

1) pip install

root@galileo:/media/card# pip install scipy

Collecting scipy

/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_ .py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may c ause the server to present an incorrect TLS certificate, which can cause validat ion failures. For more information, see https://urllib3.readthedocs.org/en/lates https://urllib3.readthedocs.org/en/lates t/security.html# snimissingwarning.

SNIMissingWarning

/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_ .py:120: InsecurePlatformWarning: A true SSLContext object is not available. Thi s prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/e https://urllib3.readthedocs.org/e n/latest/security.html# insecureplatformwarning.

InsecurePlatformWarning

Downloading scipy-0.17.0.tar.gz (12.4MB)

100% |# | 12.4MB 1.0kB/s

Building wheels for collected packages: scipy

Running setup.py bdist_wheel for scipy ... error

Complete output from command /usr/bin/python -u -c "import setuptools, tokeniz e;__file__='/tmp/pip-build-cULFeC/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist _wheel -d /tmp/tmpMx25pMpip-wheel- --python-tag cp27:

Traceback (most recent call last):

File "", line 1, in

File "/tmp/pip-build-cULFeC/scipy/setup.py", line 265, in

setup_package()

File "/tmp/pip-build-cULFeC/scipy/setup.py", line 262, in setup_package

setup(**metadata)

File "/usr/lib/python2.7/site-packages/numpy/distutils/core.py", line 143, i n setup

dist = setup(**new_attr)

File "/usr/lib/python2.7/site-packages/numpy/distutils/core.py", line 186, i n setup

return old_setup(**new_attr)

File "/usr/lib/python2.7/distutils/core.py", line 138, in setup

ok = dist.parse_command_line()

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptool s/dist.py", line 232, in parse_command_line

result = _Distribution.parse_command_line(self)

File "/usr/lib/python2.7/distutils/dist.py", line 467, in parse_command_line

args = self._parse_command_opts(parser, args)

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptool s/dist.py", line 558, in _parse_command_opts

nargs = _Distribution._parse_command_opts(self, parser, args)

File "/usr/lib/python2.7/distutils/dist.py", line 523, in _parse_command_opt s

cmd_class = self.get_command_class(command)

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptool s/dist.py", line 362, in get_command_class

ep.require(installer=self.fetch_build_egg)

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resou rces.py", line 2029, in require

working_set.resolve(self.dist.requires(self.extras),env,installer))

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resou rces.py", line 2239, in requires

dm = self._dep_map

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resou rces.py", line 2468, in _dep_map

self.__dep_map = self._compute_dependencies()

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resou rces.py", line 2501, in _compute_dependencies

common = frozenset(reqs_for_extra(None))

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/pkg_resou rces.py", line 2498, in reqs_for_extra

if req.marker_fn(override={'extra':extra}):

File "/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/_markerli b/markers.py", line 100, in marker_fn

return eval(compiled_marker, environment)

File "", line 1, in

NameError: name 'sys_platform' is not defined

----------------------------------------

Failed building wheel for scipy

Running setup.py clean for scipy

Failed to build scipy

Installing collected packages: scipy

Running setup.py install for scipy ... error

Complete output from command /usr/bin/python -u -c "import setuptools, token ize;__file__='/tmp/pip-build-cULFeC/scipy/setup.py';exec(compile(getattr(tokeniz ...

Tags (1)
3 Replies
Highlighted
Honored Contributor I
30 Views

Hi BretchW,

A little bit off-topic (I don't know about scipy installation/usage), but I think Galileo is not focused in compute intensive tasks as those related to BLAS-Fortran. Maybe it's best just to forward HPC/compute intensive tasks to some better computing platform.

Just a suggestion, I don't know the details of your project,

Fernando.

0 Kudos
Highlighted
New Contributor II
30 Views

Hey Brecht,

Did you Try this:

https://github.com/scipy/scipy/blob/master/INSTALL.rst.txt# from-tarballs scipy/INSTALL.rst.txt at master · scipy/scipy · GitHub

You shouldn't need to install "tar" it should already function on your galileo.

try this: from the install docs i posted above: It's kind of slow but..

1. git clone <</span>https://thegitaddress/ https://thegitaddress>

2. cd scipy

3. git clean -xdf

4. python setup.py install --user

I tried this but I didn't have enough space on my galileo.

Highlighted
New Contributor II
30 Views

I will try this as soon as /thread/99579?sr=inbox my partition is larger.

Thank you for your help.

0 Kudos