ImportError: No module named scipy PS E:\p> python -m pip install scipy出红字错

问题:

Running setup.py install for scipy ... error
    Complete output from command D:\python2.7\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\0011\\appdata\\local\\temp\\pip
-build-8qouxf\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __f
ile__, 'exec'))" install --record c:\users\0011\appdata\local\temp\pip-hki5pg-record\install-record.txt --single-version-externally-managed --co
mpile:




解决:

方法1:

安装参考

Anaconda url:https://www.continuum.io/downloads 
安装成功后,运行Anacona prompt
输入conda list 就可以查询,你现在安装了哪些库,常用的numpy, scipy名列其中。


方法2:

Download the scipy wheel file from the following link

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

Then do pip install with the Downloaded file

  • 安装命令

pip install scipy-1.0.0rc2-cp27-none-win_amd64.whl
ImportError: No module named scipy PS E:\p> python -m pip install scipy出红字错_第1张图片

  • 检验一下:

ImportError: No module named scipy PS E:\p> python -m pip install scipy出红字错_第2张图片

你可能感兴趣的:(python)