Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107059 > unrolled thread

help install numpy and scipy in window 7 and 3.5.0 shell

Started bywrh8609@gmail.com
First post2016-04-15 07:37 -0700
Last post2016-04-15 22:23 +0100
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  help install numpy and scipy in window 7 and 3.5.0 shell wrh8609@gmail.com - 2016-04-15 07:37 -0700
    Re: help install numpy and scipy in window 7 and 3.5.0 shell Bob Gailer <bgailer@gmail.com> - 2016-04-15 10:56 -0400
      Re: help install numpy and scipy in window 7 and 3.5.0 shell wrh8609@gmail.com - 2016-04-15 09:29 -0700
        Re: help install numpy and scipy in window 7 and 3.5.0 shell Martin Schöön <martin.schoon@gmail.com> - 2016-04-15 20:41 +0000
        Re: help install numpy and scipy in window 7 and 3.5.0 shell Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2016-04-15 22:23 +0100

#107059 — help install numpy and scipy in window 7 and 3.5.0 shell

Fromwrh8609@gmail.com
Date2016-04-15 07:37 -0700
Subjecthelp install numpy and scipy in window 7 and 3.5.0 shell
Message-ID<da6a5052-1721-40e0-8f4b-2ddffafe62c7@googlegroups.com>
Hi all,

I have downloaded the numpy-1.11.01 and scipy-0.17.0 but after running setup files over IDLE in numpy and scipy, it still can not get through. Can someone give me a hand? or you can provide the installation instruction for both.

Thanks,
Wen-Ruey

[toc] | [next] | [standalone]


#107061

FromBob Gailer <bgailer@gmail.com>
Date2016-04-15 10:56 -0400
Message-ID<mailman.28.1460732174.6324.python-list@python.org>
In reply to#107059
On Apr 15, 2016 10:40 AM, <wrh8609@gmail.com> wrote:
>
> Hi all,
>
> I have downloaded the numpy-1.11.01 and scipy-0.17.0 but after running
setup files over IDLE in numpy and scipy, it still can not get through. Can
someone give me a hand? or you can provide the installation instruction for
both.

Can you be more specific? "Can not get through" is not very informative.
What opeting system are you using? What version of python? What messages or
symptoms do you get? The more you help us the easier it is for us to help
you. We do welcome your questions thank you

[toc] | [prev] | [next] | [standalone]


#107063

Fromwrh8609@gmail.com
Date2016-04-15 09:29 -0700
Message-ID<7daec141-40c0-4a7c-953e-7e0628d74654@googlegroups.com>
In reply to#107061
On Friday, April 15, 2016 at 10:56:28 AM UTC-4, Bob Gailer wrote:
> On Apr 15, 2016 10:40 AM, <wrh8609@gmail.com> wrote:
> >
> > Hi all,
> >
> > I have downloaded the numpy-1.11.01 and scipy-0.17.0 but after running
> setup files over IDLE in numpy and scipy, it still can not get through. Can
> someone give me a hand? or you can provide the installation instruction for
> both.
> 
> Can you be more specific? "Can not get through" is not very informative.
> What opeting system are you using? What version of python? What messages or
> symptoms do you get? The more you help us the easier it is for us to help
> you. We do welcome your questions thank you

Hi Bob,

First I would like to have your input of installation instruction for numpy and scipy. I don't know what I did to run the setup.py is correct. The operating system is on window 7 and the version of python is 3.5.0. By the way, after I ran the setup.py of numpy over IDLE, it shows "Running from numpy source directory." and I can import numpy. But after I ran setup.py of scipy over IDLE, it shows 
=============== RESTART: C:\PythonFiles\scipy-0.17.0\setup.py ===============
Traceback (most recent call last):
  File "C:\PythonFiles\scipy-0.17.0\setup.py", line 265, in <module>
    setup_package()
  File "C:\PythonFiles\scipy-0.17.0\setup.py", line 253, in setup_package
    from numpy.distutils.core import setup
ImportError: No module named 'numpy'

If you have further suggestion, please let me know.

Thanks,
Wen-Ruey

[toc] | [prev] | [next] | [standalone]


#107071

FromMartin Schöön <martin.schoon@gmail.com>
Date2016-04-15 20:41 +0000
Message-ID<dnd1vvFaih2U1@mid.individual.net>
In reply to#107063
Den 2016-04-15 skrev wrh8609@gmail.com <wrh8609@gmail.com>:
>
On Windows (at work) I use Python(x,y) http://python-xy.github.io/
It has yet to fail me.

/Martin

[toc] | [prev] | [next] | [standalone]


#107072

FromOscar Benjamin <oscar.j.benjamin@gmail.com>
Date2016-04-15 22:23 +0100
Message-ID<mailman.32.1460755430.6324.python-list@python.org>
In reply to#107063
On 15 April 2016 at 17:29,  <wrh8609@gmail.com> wrote:
>> On Apr 15, 2016 10:40 AM, <wrh8609@gmail.com> wrote:
>> >
>> > I have downloaded the numpy-1.11.01 and scipy-0.17.0 but after running
>> setup files over IDLE in numpy and scipy, it still can not get through. Can
>> someone give me a hand? or you can provide the installation instruction for
>>
>
> First I would like to have your input of installation instruction for numpy and scipy. I don't know what I did to run the setup.py is correct. The operating system is on window 7 and the version of python is 3.5.0. By the way, after I ran the setup.py of numpy over IDLE, it shows "Running from numpy source directory."

I think what you mean is that you ran the setup.py to build e.g
"python setup.py biuld" and then you ran Python and did "import numpy"
and then numpy complained about you importing from within the source
directory. Numpy complains about this because you should *install*
numpy, change to a different directory and then import it e.g.:

$ python setup.py install
$ cd /some/where/else
$ python
>>> import numpy

> and I can import numpy. But after I ran setup.py of scipy over IDLE, it shows
> =============== RESTART: C:\PythonFiles\scipy-0.17.0\setup.py ===============
> Traceback (most recent call last):
>   File "C:\PythonFiles\scipy-0.17.0\setup.py", line 265, in <module>
>     setup_package()
>   File "C:\PythonFiles\scipy-0.17.0\setup.py", line 253, in setup_package
>     from numpy.distutils.core import setup
> ImportError: No module named 'numpy'

You didn't install numpy so it's not importable when you're not in the
numpy source directory. In order to build scipy you have used cd to
change to a different directory and now "import numpy" (which is what
scipy's setup.py does) fails.

I'm not sure what toolchain you can actually use to build numpy and
scipy for Python 3.5 on Windows because:
1) In the past (Pre 3.5) MinGW gcc was used to be able to compile the
fortran parts of scipy.
2) python.org's Python 3.5 Windows build is updated to use MSVC2015
which uses the new UCRT.
3) MinGW gcc cannot make binaries compatible with the UCRT so...
4) MSVC2015 is needed for extension modules for Python 3.5 on Windows but...
5) MSVC2015 cannot compile Fortran so it can't compile scipy

There is work on a project called mingwpy which will hopefully add
ucrt support to MinGW-W64 but I'm not sure of its status.

All of the above is just background on the difficulties of building
numpy/scipy yourself for Python 3.5 on Windows however...

Numpy now has binary (pre-complied) wheels for Windows, OSX and Linux
on PyPI so you should be able to just install it with:

    $ pip install numpy

This is much easier than what you're currently attempting. I don't
know if the same works for scipy now or not.

Here on Linux I can install both numpy and scipy as precompiled wheels
from PyPI simply by running

    $ pip install numpy scipy

and it takes about 5 seconds.

Give it a try and let and us know.

--
Oscar

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web