Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107072
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Oscar Benjamin <oscar.j.benjamin@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: help install numpy and scipy in window 7 and 3.5.0 shell |
| Date | Fri, 15 Apr 2016 22:23:23 +0100 |
| Lines | 79 |
| Message-ID | <mailman.32.1460755430.6324.python-list@python.org> (permalink) |
| References | <da6a5052-1721-40e0-8f4b-2ddffafe62c7@googlegroups.com> <CAP1rxO7RPQoH2taeaYZ4crE0WrLswF4CwwnbMU5EvmzZ3kPPqw@mail.gmail.com> <mailman.28.1460732174.6324.python-list@python.org> <7daec141-40c0-4a7c-953e-7e0628d74654@googlegroups.com> <CAHVvXxRFQoEzMYdBXHLj8ibVH0JZPZdyJTmmeAVEZ+6MFyuaHw@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | news.uni-berlin.de S+HSAWf3P5ehmRicun8b4QZquMWt7n0IA/Z6KoMYgKwg== |
| Return-Path | <oscar.j.benjamin@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'binary': 0.05; 'importerror:': 0.05; 'scipy': 0.05; 'correct.': 0.07; 'pypi': 0.07; 'setup.py': 0.07; 'skip:/ 10': 0.07; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; '"running': 0.09; 'fails.': 0.09; 'through.': 0.09; 'python': 0.10; 'importing': 0.15; '"python': 0.16; '2016': 0.16; 'binaries': 0.16; 'cc:name:python list': 0.16; 'complained': 0.16; 'complains': 0.16; 'hand?': 0.16; 'idle,': 0.16; 'importable': 0.16; 'numpy': 0.16; 'osx': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'scipy,': 0.16; 'seconds.': 0.16; 'status.': 0.16; 'subject:install': 0.16; 'wrote:': 0.16; 'directory.': 0.18; 'skip:= 10': 0.18; 'input': 0.18; '>>>': 0.20; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'extension': 0.20; 'skip:" 30': 0.20; 'gcc': 0.22; 'am,': 0.23; 'installation': 0.23; 'import': 0.24; '(most': 0.24; 'downloaded': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; '(which': 0.26; 'linux': 0.26; 'compatible': 0.27; 'not.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'windows,': 0.29; 'instruction': 0.29; "i'm": 0.30; '15,': 0.30; 'window': 0.30; "can't": 0.32; 'run': 0.33; 'source': 0.33; 'hopefully': 0.33; 'idle': 0.33; 'traceback': 0.33; 'know.': 0.34; 'file': 0.34; 'running': 0.34; 'add': 0.34; 'received:google.com': 0.35; 'skip:c 30': 0.35; 'but': 0.36; 'should': 0.36; 'project': 0.36; 'needed': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'operating': 0.37; 'version': 0.38; 'received:209': 0.38; 'building': 0.38; 'someone': 0.38; 'files': 0.38; 'mean': 0.38; 'sure': 0.39; "didn't": 0.39; 'takes': 0.39; 'build': 0.40; 'still': 0.40; 'called': 0.40; 'your': 0.60; 'provide': 0.61; 'skip:n 10': 0.62; 'different': 0.63; 'within': 0.64; 'here': 0.66; 'yourself': 0.73; 'mingw': 0.84; 'oscar': 0.84; 'pip': 0.84; 'precompiled': 0.84; 'scipy.': 0.84; 'wheels': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=E4Cmo9O+fQe9y/V3OVBwxAy5TnAXeoK2AtYjOtHDzFA=; b=iqe6agsBz6O12kR86ddHm56E4r8LqHa/+a5XwMYdwOhuKp6qSfk0TB8MB0GbJi8AI5 Lo1ReN05tzRAe2WcbZTuf3wmdE6yRibOrNMIr9ihutaUzeHZLA18HFjqs0zO9mFCum/l njfBOEAUYZxdUfrt5Pj1KcxXgBajUtav2Yv4To6ffd6hq1VQtdbdCACKYbz6yabqRZ66 hjBioxPrH9TDENycvoXI8LGexVwp6y/nRtxi69bOpbFV2xxLJ4Otc4l2KWTGpRhI+7Ih Vupp2/Tc9AdggdrS/YwvrkFtF6/toygQqRobvn7YfPGfqpYAyZSh/50HfkND5S2JGSt8 v+IQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=E4Cmo9O+fQe9y/V3OVBwxAy5TnAXeoK2AtYjOtHDzFA=; b=IY5vt1GeRYYMkevaZlPANlO9OaCyaNCLbYNC/1KmprkESKQSYAnrnZhsimz90Lyud4 pr9xRrZMgihnf0bBd2BKAskTqodtgrZw5fnR9kLXWONcKr9LFudeqjQy3UhWka5dDHDd +w6e/G37O2zQmaNOnu+5VkWfDDXXDep2NVAKUSJCsLwefTiMedhkhUOpLXjfc+zUkMAy RFTxaeq4GILfvXk/pj6ct05Ru8ug8ape0yslGUuzqxX/3E7jqh7Nq17WeI1H0AGV7cGM 6ykSocbpGgh5SbXnS8dLCvLa520nw7Ut0S3ym9uzTCc9Mv4yM/Ny3m48Wa9Y82MQPD+J 1/xQ== |
| X-Gm-Message-State | AOPr4FVwVLyoa0YrUX/Ad21NW0ijGF1+VScgq7tunhddd2b6IzOtAHFoKKCh3uHfnqST/GsmgZHs+y5f6Uhf5g== |
| X-Received | by 10.112.10.109 with SMTP id h13mr9701681lbb.58.1460755423275; Fri, 15 Apr 2016 14:23:43 -0700 (PDT) |
| In-Reply-To | <7daec141-40c0-4a7c-953e-7e0628d74654@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAHVvXxRFQoEzMYdBXHLj8ibVH0JZPZdyJTmmeAVEZ+6MFyuaHw@mail.gmail.com> |
| X-Mailman-Original-References | <da6a5052-1721-40e0-8f4b-2ddffafe62c7@googlegroups.com> <CAP1rxO7RPQoH2taeaYZ4crE0WrLswF4CwwnbMU5EvmzZ3kPPqw@mail.gmail.com> <mailman.28.1460732174.6324.python-list@python.org> <7daec141-40c0-4a7c-953e-7e0628d74654@googlegroups.com> |
| Xref | csiph.com comp.lang.python:107072 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web