首页 文章

无法在Windows中安装Scipy?

提问于
浏览
1

1当我使用 pip install scipy 安装Scipy时,我收到此错误,如图所示 . 我've tried this many time and also I'试过 scikit-learn 但它也需要这个Scipy . 请帮帮我,我明天要提交项目 . :(

ERROR

命令“”c:\ users \ siraj munir \ appdata \ local \ programs \ python \ python36 \ python.exe“-u -c”import setuptools,tokenize; file ='C:\ Users \ SIRAJM~1 \ AppData \ Local \ Temp \ pip-build-7mua6674 \ scipy \ setup.py'; f = getattr(tokenize,'open',open)(file); code = f.read() . replace('\ r \ n', '\ n'); f.close(); exec(compile(code,file,'exec'))“install --record C:\ Users \ SIRAJM~1 \ AppData \ Local \ Temp \ pip-0x99qqd0-record \ install-record.txt --single-version-external-managed --compile“失败,错误代码1在C:\ Users \ SIRAJM~1 \ AppData \ Local \ Temp \ pip-build-7mua6674 \ scipy \

1 回答

  • 1

    尝试从这里安装scipy:

    http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

    你'll need to know your version of python to choose correctly (I see you have 3.6). Also you'我需要知道它是32位还是64位 . 您可以通过反复试验来实现;)或者您可以检查 python.exe 的输出:

    win32上的Python 3.5.1(v3.5.1:37a07cee5969,2015年12月6日,01:38:48)[MSC v.1900 32 bit (英特尔)]

    粗体部分表示它是哪个版本(不要被 win32 部分误导) .

    另一个选择是安装anaconda . 它比较重,但你不需要知道任何事情 .

相关问题