问题:无法通过pip安装Scipy

当通过pip安装scipy时:

pip install scipy

Pip无法构建scipy,并引发以下错误:

Cleaning up...
Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy
Storing debug log for failure in /Users/administrator/.pip/pip.log

如何获得成功构建的秘诀?这可能是OSX Yosemite的一个新问题,因为我刚刚升级并且之前没有安装scipy的问题。


调试日志:

Cleaning up...
  Removing temporary dir /Users/administrator/dev/KaggleAux/env/build...
Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy
Exception information:
Traceback (most recent call last):
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy

When installing scipy through pip with :

pip install scipy

Pip fails to build scipy and throws the following error:

Cleaning up...
Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy
Storing debug log for failure in /Users/administrator/.pip/pip.log

How can I get scipy to build successfully? This may be a new issue with OSX Yosemite since I just upgraded and haven’t had issues installing scipy before.


Debug log:

Cleaning up...
  Removing temporary dir /Users/administrator/dev/KaggleAux/env/build...
Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy
Exception information:
Traceback (most recent call last):
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/administrator/dev/KaggleAux/env/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/administrator/dev/KaggleAux/env/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/administrator/dev/KaggleAux/env/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zl/7698ng4d4nxd49q1845jd9340000gn/T/pip-eO8gua-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/administrator/dev/KaggleAux/env/bin/../include/site/python2.7 failed with error code 1 in /Users/administrator/dev/KaggleAux/env/build/scipy

回答 0

向SciPy团队提出问题后,我们发现您需要使用以下方法升级点子:

pip install --upgrade pip

Python 3这项工作中:

python3 -m pip install --upgrade pip

为SciPy正确安装。为什么?因为:

必须告知较旧版本的pip使用IIRC车轮–use-wheel。或者,您可以升级点子本身,然后应该拿起轮子。

升级pip可以解决此问题,但是您也可以只使用该--use-wheel标志。

After opening up an issue with the SciPy team, we found that you need to upgrade pip with:

pip install --upgrade pip

And in Python 3 this works:

python3 -m pip install --upgrade pip

for SciPy to install properly. Why? Because:

Older versions of pip have to be told to use wheels, IIRC with –use-wheel. Or you can upgrade pip itself, then it should pick up the wheels.

Upgrading pip solves the issue, but you might be able to just use the --use-wheel flag as well.


回答 1

安装了64位Python的Microsoft Windows用户需要.whl此处下载64位的Scipy ,然后将其简单地cd下载到您已下载.whl文件并运行的文件夹中:

pip install scipy-0.16.1-cp27-none-win_amd64.whl

Microsoft Windows users of 64 bit Python installations will need to download the 64 bit .whl of Scipy from here, then simply cd into the folder you’ve downloaded the .whl file and run:

pip install scipy-0.16.1-cp27-none-win_amd64.whl

回答 2

在ubuntu下安装Scipy时遇到相同的问题。
我不得不使用命令:

$ sudo apt-get install libatlas-base-dev gfortran
$ sudo pip3 install scipy

您可以在此处获得更多详细信息使用pip安装SciPy
对不起,在OS X Yosemite下不知道如何进行操作。

I face same problem when install Scipy under ubuntu.
I had to use command:

$ sudo apt-get install libatlas-base-dev gfortran
$ sudo pip3 install scipy

You can get more details here Installing SciPy with pip
Sorry don’t know how to do it under OS X Yosemite.


回答 3

在Windows 10中,大多数选项将不起作用。跟着这些步骤:

在Windows 10与CMD,你不能下载scipy直接使用最知名的命令喜欢的wgetcloning scipy githubpip install scipy,等

要安装,请转至pythonlibs .whl文件,如果正在使用,请python 2.7 32 bit下载,numpy-1.11.2rc1+mkl-cp27-cp27m-win32.whl and scipy-0.18.1-cp27-cp27m-win32.whl或者python 2.7 62 bit先下载numpy-1.11.2rc1+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl

下载后,将文件保存在您的下python directory,在我的情况下是c:\>python27

然后运行:

pip install C:\Python27\numpy-1.11.2rc1+mkl-cp27-cp27m-win32.whl 
pip install C:\Python27\scipy-0.18.1-cp27-cp27m-win32.whl

注意:

  1. scipy需要numpy作为依赖项,所以这就是我们在下载numpy之前scipy
  2. cp27.whl文件中的文件意味着这些文件专门用于python 2.7cp33表示python 3.x> = 3.3

In windows 10, most options will not work. Follow these steps:

In Windows 10 with CMD, you cannot download scipy directly using most of the well known commands like wget, cloning scipy github, pip install scipy, etc

To install, go to pythonlibs .whl files , and if you are using python 2.7 32 bit then download numpy-1.11.2rc1+mkl-cp27-cp27m-win32.whl and scipy-0.18.1-cp27-cp27m-win32.whl or if python 2.7 62 bit then download numpy-1.11.2rc1+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl

After downloading,save the files under your python directory , in my case it was c:\>python27

Then run:

pip install C:\Python27\numpy-1.11.2rc1+mkl-cp27-cp27m-win32.whl 
pip install C:\Python27\scipy-0.18.1-cp27-cp27m-win32.whl

Note:

  1. scipy needs numpy as dependency, so that’s why we are downloading numpy before scipy.
  2. cp27 in .whl files means that these files are meant for python 2.7 and cp33 stands for python 3.x speciafically >=3.3

回答 4

找到一些线索的答案后,我通过做

brew install gcc 
pip install scipy

(第一步是在我的2011 Mac Book Air上花费96分钟,所以希望您不要着急!)

After finding this answer for some clues, I got this working by doing

brew install gcc 
pip install scipy

(The first of these steps took 96 minutes on my 2011 Mac Book Air so I hope you’re not in a hurry!)


回答 5

如果您是python的新手,请分步阅读或直接进入最后一步。请按照以下方法在Windows 64位,Python 64位上安装scipy 0.18.1。如果以下命令不起作用,请继续进行操作

pip install scipy

注意以下版本

  1. Python

  2. 视窗

  3. .whl版本的numpy和scipy文件

  4. 首先安装numpy和scipy。

    pip install FileName.whl
  5. 对于Numpy:http : //www.lfd.uci.edu/~gohlke/pythonlibs/#numpy 对于Scipy:http : //www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

注意文件名(检查版本号)。

例如:scipy-0.18.1-cp35-cp35m-win_amd64.whl

要检查您的点子支持哪个版本,请转到下面的第2点。

如果您正在使用.whl文件。可能会发生以下错误。

  1. 您正在使用pip版本7.1.0,但是版本8.1.2可用。

您应该考虑通过’python -m pip install –upgrade pip’命令进行升级

  1. 在此平台上不支持scipy-0.15.1-cp33-none-win_amd64.whl.whl

对于上述错误:启动Python并输入:

import pip
print(pip.pep425tags.get_supported())

输出:

[(’cp35’,’cp35m’,’win_amd64’),(’cp35’,’none’,’win_amd64’),(’py3’,’none’,’win_amd64’),(’cp35’,’none ‘,’any’),(’cp3’,’none’,’any’),(’py35’,’none’,’any’),(’py3’,’none’,’any’),( ‘py34’,’none’,’any’),(’py33’,’none’,’any’),(’py32’,’none’,’any’),(’py31’,’none’, ‘any’),(’py30’,’none’,’any’)]

在输出中,您会看到cp35在那里,因此为numpy和scipy下载cp35,欢迎进一步编辑。

If you are totally new to python read step by step or go directly to last step. Follow the below method to install scipy 0.18.1 on Windows 64-bit , Python 64-bit . If below command is not working then proceed further

pip install scipy

Be careful with the versions of

  1. Python

  2. Windows

  3. .whl version of numpy and scipy files

  4. First install numpy and scipy.

    pip install FileName.whl
    
  5. For Numpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy For Scipy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

Be aware of the file name (check the version number).

Ex :scipy-0.18.1-cp35-cp35m-win_amd64.whl

To check which version is supported by your pip, go to point No 2 below.

If you are using .whl file . Following errors are likely to occur .

  1. You are using pip version 7.1.0, however version 8.1.2 is available.

You should consider upgrading via the ‘python -m pip install –upgrade pip’ command

  1. scipy-0.15.1-cp33-none-win_amd64.whl.whl is not supported wheel on this platform

For the above error: start Python and type :

import pip
print(pip.pep425tags.get_supported())

Output:

[(‘cp35’, ‘cp35m’, ‘win_amd64’), (‘cp35’, ‘none’, ‘win_amd64’), (‘py3’, ‘none’, ‘win_amd64’), (‘cp35’, ‘none’, ‘any’), (‘cp3’, ‘none’, ‘any’), (‘py35’, ‘none’, ‘any’), (‘py3’, ‘none’, ‘any’), (‘py34’, ‘none’, ‘any’), (‘py33’, ‘none’, ‘any’), (‘py32’, ‘none’, ‘any’), (‘py31’, ‘none’, ‘any’), (‘py30’, ‘none’, ‘any’)]

In the output you will observe cp35 is there , so download cp35 for numpy as well as scipy.Further edits are most welcome.


回答 6

对于Windows 10

C:\目录> pip安装scipy-0.19.0rc2-cp35-cp35m-win_amd64.whl

For Windows 10

C:\directory> pip install scipy-0.19.0rc2-cp35-cp35m-win_amd64.whl


回答 7

而不是艰难地下载特定软件包。我更喜欢使用Conda的更快途径。点有问题。

  • Python -v(3.6.0)
  • Windows 10(64位)

Conda,从以下位置安装conda:https ://conda.io/docs/install/quick.html#windows-miniconda-install

命令提示符

C:\Users\xyz>conda install -c anaconda scipy=0.18.1
Fetching package metadata .............
Solving package specifications:

在环境C:\ Users \ xyz \ Miniconda3中安装的软件包计划:

将安装以下新软件包:

mkl:       2017.0.1-0         anaconda
numpy:     1.12.0-py36_0      anaconda
scipy:     0.18.1-np112py36_1 anaconda

优先级较高的频道将对以下程序包进行超级管理:

conda:     4.3.11-py36_0               --> 4.3.11-py36_0 anaconda
conda-env: 2.6.0-0                     --> 2.6.0-0       anaconda

是否继续([y] / n)?ÿ

conda-env-2.6. 100% |###############################| Time: 0:00:00  32.92 kB/s
mkl-2017.0.1-0 100% |###############################| Time: 0:00:24   5.45 MB/s
numpy-1.12.0-p 100% |###############################| Time: 0:00:00   5.09 MB/s
scipy-0.18.1-n 100% |###############################| Time: 0:00:02   5.59 MB/s
conda-4.3.11-p 100% |###############################| Time: 0:00:00   4.70 MB/s

Rather than going the harder route of downloading specific packages. I prefer to go the faster route of using Conda. pip has its issues.

  • Python -v (3.6.0)
  • Windows 10 (64 bit)

Conda , install conda from : https://conda.io/docs/install/quick.html#windows-miniconda-install

command prompt

C:\Users\xyz>conda install -c anaconda scipy=0.18.1
Fetching package metadata .............
Solving package specifications:

Package plan for installation in environment C:\Users\xyz\Miniconda3:

The following NEW packages will be INSTALLED:

mkl:       2017.0.1-0         anaconda
numpy:     1.12.0-py36_0      anaconda
scipy:     0.18.1-np112py36_1 anaconda

The following packages will be SUPERCEDED by a higher-priority channel:

conda:     4.3.11-py36_0               --> 4.3.11-py36_0 anaconda
conda-env: 2.6.0-0                     --> 2.6.0-0       anaconda

Proceed ([y]/n)? y

conda-env-2.6. 100% |###############################| Time: 0:00:00  32.92 kB/s
mkl-2017.0.1-0 100% |###############################| Time: 0:00:24   5.45 MB/s
numpy-1.12.0-p 100% |###############################| Time: 0:00:00   5.09 MB/s
scipy-0.18.1-n 100% |###############################| Time: 0:00:02   5.59 MB/s
conda-4.3.11-p 100% |###############################| Time: 0:00:00   4.70 MB/s

回答 8

  1. http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy下载SciPy
  2. 进入下载文件所在的目录和pip install文件。
  3. 转到python shell,运行import scipy;它对我没有任何错误。
  1. Download SciPy from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
  2. Go into the directory the downloaded file is in and pip install the file.
  3. Go to python shell, run import scipy; it worked for me with no errors.

回答 9

这是pip的替代方法。安装scipy时我也遇到了相同的错误使用pip。

然后我下载并安装了MiniConda。然后,我使用以下命令安装pytables。

conda install -c conda-forge scipy

请参考以下屏幕截图。

在此处输入图片说明

This is an alternative to pip. I also had the same error when installing scipy with pip.

Then I downloaded and installed MiniConda. And then I used the below command to install pytables.

conda install -c conda-forge scipy

Please refer the below screenshot.

enter image description here


回答 10

我可以建议的最好方法是

  1. 从此位置下载wheel文件以获取您的python版本

  2. 将文件移动到主驱动器,例如C:>

  3. 运行Cmd并输入以下内容

    • 点安装scipy-1.0.0rc1-cp36-none-win_amd64.whl

请注意,这是我用于pyhton 3.6.2的版本,应该可以正常安装

您可能要在确保所有python附加组件都是最新的之后运行此命令

pip list --outdated

the best method I could suggest is this

  1. Download the wheel file from this location for your version of python

  2. Move the file to your Main Drive eg C:>

  3. Run Cmd and enter the following

    • pip install scipy-1.0.0rc1-cp36-none-win_amd64.whl

Please note this is the version I am using for my pyhton 3.6.2 it should install fine

you may want to run this command after to make sure all your python add ons are up to date

pip list --outdated

回答 11

或者,手动下载并执行 适合您的http://www.lfd.uci.edu/~gohlke/pythonlibs Scipy版本。考虑您的Python版本(python –version)和您的系统架构(32/64位)。相应地选择Scipy版本。SciPy的-0.18.1- cp27 -cp27m- 的win32 -用于Python 2.7 32位SciPy的-0.18.1- cp27 -cp27m- win_amd64 -用于Python 2.7 64位否则错误 SciPy的-0.15.1-CP33-NONE-win_amd64.whl不支持.whl的平台 上的滚轮将在安装时弹出。

现在将目录更改为下载的文件并执行命令 pip install scipy-0.15.1-cp33-none-win_amd64.whl.whl(适当更改文件名)

我添加此答案的唯一原因是Arun的答案(对我自己有用)没有提及我所遇到的有关32/64位匹配的任何内容。

Alternatively, manually download and execute http://www.lfd.uci.edu/~gohlke/pythonlibs Scipy version suitable for you. Consider your Python version (python –version) and your system architecture (32/64 bit). Choose the Scipy version accordingly. scipy-0.18.1-cp27-cp27m-win32 – for Python 2.7 32 bit scipy-0.18.1-cp27-cp27m-win_amd64 – for Python 2.7 64 bit Otherwise the error scipy-0.15.1-cp33-none-win_amd64.whl.whl is not supported wheel on this platform will popup on installation.

Now change directory to the downloaded file and execute command pip install scipy-0.15.1-cp33-none-win_amd64.whl.whl (change file name appropriately)

I have added this answer only because the Arun’s answer(found useful by myself) has not mentioned anything about 32/64 bit matching which i have faced.


回答 12

如果您使用的是CentOS,则需要按以下方式安装lapack-devel:

 $ yum install lapack-devel

If you are using CentOS you need to install lapack-devel like so:

 $ yum install lapack-devel

回答 13

尝试从下面的链接下载scipy文件

https://sourceforge.net/projects/scipy/?source=typ_redirect

这将是一个.exe文件,您只需要运行它即可。但请确保选择与您的python版本相对应的scipy版本。

运行scipy.exe文件时,它将找到python目录并进行安装。

Try downloading the scipy file from the below link

https://sourceforge.net/projects/scipy/?source=typ_redirect

It will be a .exe file and you just need to run it. But be sure to chose the scipy version corresponding to your python version.

When the scipy.exe file is run it will locate the python directory and will be installed .


回答 14

使用wheel文件从此处下载安装文件 http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy install

pip install c:\jjjj\ggg\fdadf.whl

use the wheel file to install download from here http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy install

pip install c:\jjjj\ggg\fdadf.whl

回答 15

我遇到了同样的问题,并且成功使用了sudo

$ sudo pip install scipy

I was having the same issue, and I had succeeded using sudo.

$ sudo pip install scipy

回答 16

最简单的方法是执行以下步骤:修复python [2.n <python <3.n]的scipy

从以下位置下载必要的文件:http : //www.lfd.uci.edu/~gohlke/pythonlibs/

下载numpy + mkl的版本(需要运行scipy),然后为您的python类型(2.n python编写为2n)或(3.n python编写为3n)下载scipy,n是一个变量。请注意,您必须知道您拥有32位还是64位处理器。

在计算机上的某个位置创建一个目录,例如[C:\ DIRECTORY]以安装文件numpy + mkd.whl和scipy.whl

下载完两个文件后,在计算机上找到文件的位置,然后将其移动到您创建的目录中。

示例:首先需要安装文件才能安装scipy

C:\ DIRECTORY \ numpy \ numpy-0.0.0 + mkl-cp2n-cp2nm-win_amd32.whl

示例:第二个文件安装在

C:\ DIRECTORY \ scipy \ scipy-0.0.0-cp2n-cp2nm-win_amd32.whl

转到命令提示符并针对python 2.n版本继续以下示例:

py -2.n -m pip install C:\DIRECTORY\numpy\numpy-0.0.0+mkl-cp2n-cp2nm-win_amd32.whl

应该安装

py -2.n -m pip install C:\DIRECTORY\scipy\scipy-0.0.0-cp2n-cp2nm-win_amd32.whl

应该安装

如下测试python IDLE上的两个模块:

import numpy

import scipy

如果没有错误返回,则模块正在工作。

国际食品药品监督管理局

The easiest way is in the following steps: Fixing scipy for python [ 2.n < python < 3.n ]

Download the necessary files from: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Download the version of numpy+mkl (needed to run scipy) and then download scipy for your python type (2.n python written as 2n) or (3.n python written as 3n), n is a variable. Note you must know whether you have a 32bit or 64bit processor.

Create a directory somewhere on your computer, example [C:\DIRECTORY] to install the files numpy+mkd.whl and scipy.whl

Once both file are downloaded, find the location of the file on your computer and move it to the directory you created.

Example: First file installation is needed for scipy is in

C:\DIRECTORY\numpy\numpy-0.0.0+mkl-cp2n-cp2nm-win_amd32.whl

Example: Second file installation is in

C:\DIRECTORY\scipy\scipy-0.0.0-cp2n-cp2nm-win_amd32.whl

Go to your command prompt and proceed the following example for a python version 2.n:

py -2.n -m pip install C:\DIRECTORY\numpy\numpy-0.0.0+mkl-cp2n-cp2nm-win_amd32.whl

should install

py -2.n -m pip install C:\DIRECTORY\scipy\scipy-0.0.0-cp2n-cp2nm-win_amd32.whl

should install

Test both modules on your python IDLE as following:

import numpy

import scipy

the modules are working if no errors are returned.

IFDAAS


回答 17

对于Windows(在我的情况下为7):

  1. http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy下载scipy-0.19.1-cp36-cp36m-win32.whl
  2. 创建一个带有内容的some.bat文件

    @echo off C:\Python36\python.exe -m pip -V C:\Python36\python.exe -m pip install scipy-0.19.1-cp36-cp36m-win32.whl C:\Python36\python.exe -m pip list pause

  3. 然后运行此批处理文件some.bat

  4. 调用python shell“ C:\ Python36 \ pythonw.exe” C:\ Python36 \ Lib \ idlelib \ idle.pyw“并测试scipy是否与

导入密码

For windows(7 in my case):

  1. download scipy-0.19.1-cp36-cp36m-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
  2. create one some.bat file with content

    @echo off C:\Python36\python.exe -m pip -V C:\Python36\python.exe -m pip install scipy-0.19.1-cp36-cp36m-win32.whl C:\Python36\python.exe -m pip list pause

  3. then run this batch file some.bat

  4. call python shell “C:\Python36\pythonw.exe “C:\Python36\Lib\idlelib\idle.pyw” and test if scipy was installed with

import scipy


回答 18

在Windows 10 100%上安装scipy的简单方法是:只需点此====> pip install scipy==1.0.0rc2

晚点再谢我 :)

The easy way to install scipy on Windows 10 100% is this: Just pip this ====> pip install scipy==1.0.0rc2

Thank me later :)


回答 19

我在Python 3.7(3.7.0b4)中遇到了类似的问题。这是由于有关某些编码假设的某些更改(Python 3.6 >> Python 3.7)

结果,许多软件包安装(例如通过pip)失败。

I experienced similar issues with Python 3.7 (3.7.0b4). This was due to some changes regarding some encoding assumptions (Python 3.6 >> Python 3.7)

As a result lots of package installations (e.g. via pip) failed.


回答 20

您可以测试以下答案:

python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

You can test this answer:

python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。