使用Python安装scipy的问题

时间:2015-05-29 03:48:30

标签: python git numpy scipy

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

这些是我不断遇到的一些错误:

- 当我尝试pip install:

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:

    Exception: Cython either isn't installed or it failed.
    Cythonizing sources
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\kathyz~1\appdata\local\temp\pip-49aa2n-build\setup.py", lin
e 253, in <module>
        setup_package()
      File "c:\users\kathyz~1\appdata\local\temp\pip-49aa2n-build\setup.py", lin
e 246, in setup_package
        generate_cython()
      File "c:\users\kathyz~1\appdata\local\temp\pip-49aa2n-build\setup.py", lin
e 164, in generate_cython
        raise RuntimeError("Running cythonize failed!")
    RuntimeError: Running cythonize failed!

    ----------------------------------------
Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\kathyz~1\\appdata\\local\\temp\\pip-49aa2n-build\\setup.py';exec(compile(ge
tattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))" install --record c:\users\kathyz~1\appdata\local\temp\pip-92weib-recor
d\install-record.txt --single-version-externally-managed --compile" failed with
error code 1 in c:\users\kathyz~1\appdata\local\temp\pip-49aa2n-build

因此在收到有关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

0 个答案:

没有答案
相关问题