没有名为scipy的模块

Gee*_*ose 3 python scipy

在sklearn\base.py中,我有这个声明" from scipy import sparse".我收到了这个错误"no module named scipy".

我尝试使用" pip install scipy" 安装.但是当我这样做时,我会遇到很多错误, ibraries mkl_rt not found, openblas not found, lapack not found, no lapacl/blas resources found等等.

我该怎么办?平台是窗户.

Bey*_*Gül 8

几天后我找到了这个解决方案.

首先要安装哪个python版本?

如果你想要Python 2.7版本:

步骤1:

SciPy的-0.19.0-cp27-cp27m-win32.whl

SciPy的-0.19.0-cp27-cp27m-win_amd64.whl

numpy的-1.11.3 + MRL-cp27-cp27m-win32.whl

numpy的-1.11.3 + MRL-cp27-cp27m-win_amd64.whl

如果你想要Python 3.4版本:

SciPy的-0.19.0-CP34-cp34m-win32.whl

SciPy的-0.19.0-CP34-cp34m-win_amd64.whl

numpy的-1.11.3 + MRL-CP34-cp34m-win32.whl

numpy的-1.11.3 + MRL-CP34-cp34m-win_amd64.whl

如果你想要Python 3.5版本:

SciPy的-0.19.0-CP35-cp35m-win32.whl

SciPy的-0.19.0-CP35-cp35m-win_amd64.whl

numpy的-1.11.3 + MRL-CP35-cp35m-win32.whl

numpy的-1.11.3 + MRL-CP35-cp35m-win_amd64.whl

如果你想要Python 3.6版本:

SciPy的-0.19.0-CP36-cp36m-win32.whl

SciPy的-0.19.0-CP36-cp36m-win_amd64.whl

numpy的-1.11.3 + MRL-CP36-cp36m-win32.whl

numpy的-1.11.3 + MRL-CP36-cp36m-win_amd64.whl

链接:点击

下载完成后,转到您的目录.

例如我的目录:

cd C:\Users\asus\AppData\Local\Programs\Python\Python35\Scripts>
pip install [where/is/your/downloaded/scipy_whl.]
Run Code Online (Sandbox Code Playgroud)

安装完成后

第2步:

NumPy的+ MKL

从基于python版本的同一网站再次:

之后在Script文件夹中再次使用相同的东西

cd C:\Users\asus\AppData\Local\Programs\Python\Python35\Scripts>

pip3 install [where/is/your/downloaded/numpy_whl.]
Run Code Online (Sandbox Code Playgroud)

并在python文件夹中测试它.

Python35>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Run Code Online (Sandbox Code Playgroud)


sha*_*hin 5

从以下链接下载scipy wheel文件

https://pypi.python.org/pypi/scipy

然后使用下载的文件进行pip安装

pip install <wheel-file>
Run Code Online (Sandbox Code Playgroud)

如果需要,请提供sudo权限