使用Python安装scipy时出现问题

2024-10-03 09:14:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我试过pip安装scipy。我已经尝试过stackOverflow的所有建议,比如更新pip,通过它的网站手动安装scipy。我试过直接从github获取。在

以下是我经常遇到的一些错误:

-当我尝试pip安装时:

Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\kathyz~1\\appdata\\local\\temp\\pip-build-gmb8oc\\scipy\\setup.py';exec(com
pile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __f
ile__, 'exec'))" install --record c:\users\kathyz~1\appdata\local\temp\pip-gndjc
d-record\install-record.txt --single-version-externally-managed --compile" faile
d with error code 1 in c:\users\kathyz~1\appdata\local\temp\pip-build-gmb8oc\sci
py

-当我尝试使用git时:

^{pr2}$

所以在得到关于cythonize的错误后,我尝试安装它,这导致了另一个错误:

warning: no files found matching '*.pyx' under directory 'Cython\Debugger\Tests'

warning: no files found matching '*.pxd' under directory 'Cython\Debugger\Tests'

warning: no files found matching '*.h' under directory 'Cython\Debugger\Tests'
warning: no files found matching '*.pxd' under directory 'Cython\Utility'
error: Setup script exited with error: Unable to find vcvarsall.bat

Tags: pipnolocal错误filesscipyappdatatemp