Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
233 views
in Technique[技术] by (71.8m points)

Installing scipy in Python 3.5 on 32-bit Windows 7 Machine

I have been trying to install Scipy onto my Python 3.5 (32-bit) install on my Windows 7 machine using the pre-built binaries from: http://www.lfd.uci.edu/~gohlke/pythonlibs

I have, in order, installed the following libraries

numpy?1.10.1+mkl?cp35?none?win32.whl
scipy?0.16.1?cp35?none?win32.whl

Then, when trying to use the installed packages I get the following erros

from scipy import sparse
< ... Complete error trace ommitted ... >
packagesscipysparsecsr.py", line 13, in <module>
    from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, 
ImportError: DLL load failed: The specified module could not be found.

However, if i follow the same process for Python 3.4 replacing the installers with:

numpy?1.10.1+mkl?cp35?none?win32.whl
scipy?0.16.1?cp35?none?win32.whl

Everything seems to work. Are there additional dependencies or install packages that I am missing for the Python 3.5 install?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Make sure you pay attention to this line from the link you provided:

Many binaries depend on NumPy-1.9+MKL and the Microsoft Visual C++ 2008 (x64, x86, and SP1 for CPython 2.6 and 2.7), Visual C++ 2010 (x64, x86, for CPython 3.3 and 3.4), or the Visual C++ 2015 (x64 and x86 for CPython 3.5) redistributable packages.

Download the corresponding Microsoft Visual C++ Redistributable Package which should be this one based on your description.

I had a similar problem, can't recall the exact issue, and I download the one for my system and it worked fine. Let me know otherwise.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...