如何使用 Python 3.4.2 在 Windows 7 中安装 scipy

2024-04-06

我安装时遇到问题scipy。当我跑步时

python -m pip install scipy

我收到以下消息:

------------------------------------------------------------
C:\Python34\lib\site-packages\pip\__main__.py run on 01/14/15 15:56:16
Downloading/unpacking scipy
  Getting page https://pypi.python.org/simple/scipy/
  URLs to search for versions for scipy:
  * https://pypi.python.org/simple/scipy/
  Analyzing links from page https://pypi.python.org/simple/scipy/
    Skipping https://pypi.python.org/packages/2.7/s/scipy/scipy-0.13.3-cp27-none-macosx_10_6_intel.whl#md5=4bc791c9f37645380cab2843e63d18db (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/3.3/s/scipy/scipy-0.13.3-cp33-cp33m-macosx_10_6_intel.whl#md5=ca634955b1757fe5e22c6a8a035bb328 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/3.4/s/scipy/scipy-0.13.3-cp34-cp34m-macosx_10_6_intel.whl#md5=0042a2e09d1632b47ed4fdb411cf9821 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.10.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=310a518b189f32116da85e1762126b1a (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.11.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=b385333496b8b25a5782c2a7a35413d3 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.12.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=8230187d0f2580bbdf78fa1b56b01087 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.13.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=0b3c405ba421f43cf97837c5aa172515 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=f56df58dd416119a23d1c58316da5c26 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=d3728a6d43c3265003db3781cbd4660f (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=6bdf3109da07d8d6caeb438777d312dc (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.1rc1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=1e6c155aa0bf5a248d3e46cf1d0ff44a (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.1rc1.dev_205726a-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=25c79e26aef2696a651c611b113c4965 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.14.1rc1.dev_52fb336-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=77ed947568d9d7b42f71ca84dce6b590 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp27/s/scipy/scipy-0.15.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=7c431a473ac65fd7cab4859c3743088b (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.13.0-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=d451fff29fd3d7aa501d6206bfed15f2 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.14.0-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=f2b504a8e3d5ee0ae33d7052a994a029 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.14.0-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=0ff3c20cb8e9c5c38e5a18cda3178ca7 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.14.1-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=423c77aa343f76c30788166400696f68 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.14.1rc1-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=bbe1317ca465c1246a71a86a5c380f0f (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.14.1rc1.dev_205726a-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=27038263a15a4c125ded37f7f1dff9d3 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.14.1rc1.dev_52fb336-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=b7514dd98239f5ec98fe290947a62906 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp33/s/scipy/scipy-0.15.0-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=f6c96a2cb737ad9f3f47db5089f8eba4 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.13.0-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=dcd20dad203d301f0b5ec7aa0bb49aa3 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.14.0-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=f5cf7e6eec6f7d41c6e46f32834d675d (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.14.0-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl#md5=de679794f46812c784845835371539f4 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.14.1-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=1c9eca63055d0e64b9b9d241ec5f9c0f (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.14.1rc1-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=ebdd363cfce65ceb62c456a8e6047ef7 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.14.1rc1.dev_205726a-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=755003a1d318c5b7e47c3e3b930f955d (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.14.1rc1.dev_52fb336-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=45c8e4c39aff1eb30b870796e039adce (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/cp34/s/scipy/scipy-0.15.0-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl#md5=4b7fc70b09576ef91e3ff4b005816379 (from https://pypi.python.org/simple/scipy/) because it is not compatible with this Python
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.10.0.tar.gz#md5=e357c08425fd031dce63bc4905789088 (from https://pypi.python.org/simple/scipy/), version: 0.10.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.10.0.zip#md5=d1a4242266739433dcfe2096b0ab4007 (from https://pypi.python.org/simple/scipy/), version: 0.10.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.10.1.tar.gz#md5=6ad976549e22e04ca93e70cf55b70a22 (from https://pypi.python.org/simple/scipy/), version: 0.10.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.10.1.zip#md5=4156cc1b765eb186de9518a94b6c3518 (from https://pypi.python.org/simple/scipy/), version: 0.10.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.11.0.tar.gz#md5=842c81d35fd63579c41a8ca21a2419b9 (from https://pypi.python.org/simple/scipy/), version: 0.11.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.11.0.zip#md5=40b700ddde9ddab643b640fff7a9d753 (from https://pypi.python.org/simple/scipy/), version: 0.11.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.12.0.tar.gz#md5=8fb4da324649f655e8557ea92b998786 (from https://pypi.python.org/simple/scipy/), version: 0.12.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.12.0.zip#md5=e4b9f3cb2e965fc8751faedfb9164d08 (from https://pypi.python.org/simple/scipy/), version: 0.12.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.12.1.tar.gz#md5=906278290152fedfe79029371ca584a5 (from https://pypi.python.org/simple/scipy/), version: 0.12.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.12.1.zip#md5=3f23065fc45152c92c3588dad2f20c62 (from https://pypi.python.org/simple/scipy/), version: 0.12.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.0.tar.gz#md5=ffa1e9bfd2bbdf3f17f4cf8139084098 (from https://pypi.python.org/simple/scipy/), version: 0.13.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.0.zip#md5=bd588ce8255e4d5427b5b19e9da2d4c7 (from https://pypi.python.org/simple/scipy/), version: 0.13.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.1.tar.gz#md5=e082fe358a2b39cff235e5af4240f5a5 (from https://pypi.python.org/simple/scipy/), version: 0.13.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.1.zip#md5=485411032b02583b4eb63caec6f2a916 (from https://pypi.python.org/simple/scipy/), version: 0.13.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.2.tar.gz#md5=fcd110802b0bf3505ba567cf831566e1 (from https://pypi.python.org/simple/scipy/), version: 0.13.2
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.2.zip#md5=9befa30e546fba762a0c1695a509f731 (from https://pypi.python.org/simple/scipy/), version: 0.13.2
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.3.tar.gz#md5=0547c1f8e8afad4009cc9b5ef17a2d4d (from https://pypi.python.org/simple/scipy/), version: 0.13.3
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.13.3.zip#md5=20ff3a867cc5925ef1d654aed2ff7e88 (from https://pypi.python.org/simple/scipy/), version: 0.13.3
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.14.0.tar.gz#md5=d7c7f4ccf8b07b08d6fe49d5cd51f85d (from https://pypi.python.org/simple/scipy/), version: 0.14.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.14.0.zip#md5=7ee4fa9e756bab6b46b79f77c821cb68 (from https://pypi.python.org/simple/scipy/), version: 0.14.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.14.1.tar.gz#md5=1bfedd3197b3e3f8cd131ae2c06a1bf5 (from https://pypi.python.org/simple/scipy/), version: 0.14.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.14.1.zip#md5=4bfc35d3683e0ef397157f84040df5b0 (from https://pypi.python.org/simple/scipy/), version: 0.14.1
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.15.0.tar.gz#md5=639112f077f0aeb6d80718dc5019dc7a (from https://pypi.python.org/simple/scipy/), version: 0.15.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.15.0.zip#md5=09641b11ac17f1c141979c60a3f60895 (from https://pypi.python.org/simple/scipy/), version: 0.15.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.8.0.tar.gz#md5=f0bfc6141b90e6a31555b31486602251 (from https://pypi.python.org/simple/scipy/), version: 0.8.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.9.0.tar.gz#md5=ebfef6e8e82d15c875a4ee6a46d4e1cd (from https://pypi.python.org/simple/scipy/), version: 0.9.0
    Found link https://pypi.python.org/packages/source/s/scipy/scipy-0.9.0.zip#md5=a37933c9e3c4fdf8d087624cd7dcb47d (from https://pypi.python.org/simple/scipy/), version: 0.9.0
  Using version 0.15.0 (newest of versions: 0.15.0, 0.15.0, 0.14.1, 0.14.1, 0.14.0, 0.14.0, 0.13.3, 0.13.3, 0.13.2, 0.13.2, 0.13.1, 0.13.1, 0.13.0, 0.13.0, 0.12.1, 0.12.1, 0.12.0, 0.12.0, 0.11.0, 0.11.0, 0.10.1, 0.10.1, 0.10.0, 0.10.0, 0.9.0, 0.9.0, 0.8.0)
  Downloading from URL https://pypi.python.org/packages/source/s/scipy/scipy-0.15.0.tar.gz#md5=639112f077f0aeb6d80718dc5019dc7a (from https://pypi.python.org/simple/scipy/)
  Running setup.py (path:C:\Users\cooluser\AppData\Local\Temp\pip_build_cooluser\scipy\setup.py) egg_info for package scipy
    non-existing path in 'numpy\\distutils': 'site.cfg'
    non-existing path in 'numpy\\f2py': 'docs'
    non-existing path in 'numpy\\f2py': 'f2py.1'
    non-existing path in 'numpy\\lib': 'benchmarks'
    Running from numpy source directory.
    C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1526: UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      warnings.warn(AtlasNotFoundError.__doc__)
    C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1535: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      warnings.warn(BlasNotFoundError.__doc__)

I HAD TO CUT SOME STUFF OUT HERE TO MAKE IT FIT IN THE CHARACTER LIMIT

        return cmd.easy_install(req)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 593, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 623, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 809, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 1015, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 1003, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: Unable to find vcvarsall.bat
    Complete output from command python setup.py egg_info:
    non-existing path in 'numpy\\distutils': 'site.cfg'

non-existing path in 'numpy\\f2py': 'docs'

non-existing path in 'numpy\\f2py': 'f2py.1'

non-existing path in 'numpy\\lib': 'benchmarks'

Running from numpy source directory.

C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1526: UserWarning:

    Atlas (http://math-atlas.sourceforge.net/) libraries not found.

    Directories to search for the libraries can be specified in the

    numpy/distutils/site.cfg file (section [atlas]) or by setting

    the ATLAS environment variable.

  warnings.warn(AtlasNotFoundError.__doc__)

C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1535: UserWarning:

    Blas (http://www.netlib.org/blas/) libraries not found.

    Directories to search for the libraries can be specified in the

    numpy/distutils/site.cfg file (section [blas]) or by setting

    the BLAS environment variable.

  warnings.warn(BlasNotFoundError.__doc__)

C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1538: UserWarning:

    Blas (http://www.netlib.org/blas/) sources not found.

    Directories to search for the sources can be specified in the

    numpy/distutils/site.cfg file (section [blas_src]) or by setting

    the BLAS_SRC environment variable.

  warnings.warn(BlasSrcNotFoundError.__doc__)

C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1432: UserWarning:

    Atlas (http://math-atlas.sourceforge.net/) libraries not found.

    Directories to search for the libraries can be specified in the

    numpy/distutils/site.cfg file (section [atlas]) or by setting

    the ATLAS environment variable.

  warnings.warn(AtlasNotFoundError.__doc__)

C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1443: UserWarning:

    Lapack (http://www.netlib.org/lapack/) libraries not found.

    Directories to search for the libraries can be specified in the

    numpy/distutils/site.cfg file (section [lapack]) or by setting

    the LAPACK environment variable.

  warnings.warn(LapackNotFoundError.__doc__)

C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\system_info.py:1446: UserWarning:

    Lapack (http://www.netlib.org/lapack/) sources not found.

    Directories to search for the sources can be specified in the

    numpy/distutils/site.cfg file (section [lapack_src]) or by setting

    the LAPACK_SRC environment variable.

  warnings.warn(LapackSrcNotFoundError.__doc__)

C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'define_macros'

  warnings.warn(msg)

Traceback (most recent call last):

  File "C:\Python34\lib\distutils\core.py", line 148, in setup

    dist.run_commands()

  File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands

    self.run_command(cmd)

  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command

    cmd_obj.run()

  File "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 177, in run

    self.run_command("egg_info")

  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command

    cmd_obj.run()

  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\command\egg_info.py", line 10, in run

  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command

    cmd_obj.run()

  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\command\build_src.py", line 153, in run

  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\command\build_src.py", line 164, in build_sources

  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\command\build_src.py", line 299, in build_library_sources

  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\command\build_src.py", line 386, in generate_sources

  File "numpy\core\setup.py", line 684, in get_mathlib_info

  File "C:\Python34\lib\distutils\command\config.py", line 243, in try_link

    self._check_compiler()

  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\command\config.py", line 57, in _check_compiler

  File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in initialize

    vc_env = query_vcvarsall(VERSION, plat_spec)

  File "C:\Python34\lib\distutils\msvc9compiler.py", line 259, in query_vcvarsall

    raise DistutilsPlatformError("Unable to find vcvarsall.bat")

distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat



During handling of the above exception, another exception occurred:



Traceback (most recent call last):

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 1000, in run_setup

    run_setup(setup_script, args)

  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 50, in run_setup

    lambda: execfile(

  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 100, in run

    return func()

  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 52, in <lambda>

    {'__file__':setup_script, '__name__':'__main__'}

  File "C:\Python34\lib\site-packages\setuptools\compat.py", line 78, in execfile

    exec(compile(source, fn, 'exec'), globs, locs)

  File "setup.py", line 251, in <module>

  File "setup.py", line 243, in setup_package



  File "C:\Users\cooluser\AppData\Local\Temp\easy_install-pccllqug\numpy-1.9.1\numpy\distutils\core.py", line 169, in setup

  File "C:\Python34\lib\distutils\core.py", line 163, in setup

    raise SystemExit("error: " + str(msg))

SystemExit: error: Unable to find vcvarsall.bat



During handling of the above exception, another exception occurred:



Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "C:\Users\cooluser\AppData\Local\Temp\pip_build_cooluser\scipy\setup.py", line 249, in <module>

    setup_package()

  File "C:\Users\cooluser\AppData\Local\Temp\pip_build_cooluser\scipy\setup.py", line 246, in setup_package

    setup(**metadata)

  File "C:\Python34\lib\distutils\core.py", line 108, in setup

    _setup_distribution = dist = klass(attrs)

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 239, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 263, in fetch_build_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "C:\Python34\lib\site-packages\pkg_resources.py", line 564, in resolve

    dist = best[req.key] = env.best_match(req, self, installer)

  File "C:\Python34\lib\site-packages\pkg_resources.py", line 802, in best_match

    return self.obtain(req, installer) # try and download/install

  File "C:\Python34\lib\site-packages\pkg_resources.py", line 814, in obtain

    return installer(requirement)

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 313, in fetch_build_egg

    return cmd.easy_install(req)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 593, in easy_install

    return self.install_item(spec, dist.location, tmpdir, deps)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 623, in install_item

    dists = self.install_eggs(spec, download, tmpdir)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 809, in install_eggs

    return self.build_and_install(setup_script, setup_base)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 1015, in build_and_install

    self.run_setup(setup_script, setup_base, args)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 1003, in run_setup

    raise DistutilsError("Setup script exited with %s" % (v.args[0],))

distutils.errors.DistutilsError: Setup script exited with error: Unable to find vcvarsall.bat

----------------------------------------
Cleaning up...
  Removing temporary dir C:\Users\cooluser\AppData\Local\Temp\pip_build_cooluser...
Command python setup.py egg_info failed with error code 1 in C:\Users\cooluser\AppData\Local\Temp\pip_build_cooluser\scipy
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python34\lib\site-packages\pip\req.py", line 1229, in prepare_files
    req_to_install.run_egg_info()
  File "C:\Python34\lib\site-packages\pip\req.py", line 325, in run_egg_info
    command_desc='python setup.py egg_info')
  File "C:\Python34\lib\site-packages\pip\util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in C:\Users\cooluser\AppData\Local\Temp\pip_build_cooluser\scipy

尝试安装numpy http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and scipy http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy来自 Christoph Gohlke 的 Windows 存储库的 Python 扩展包。这些已经编译并静态链接到 Intel 的 MKL 库以提高性能,因此您所需要做的就是下载适当的.exe找到适合您的 Python 版本和“位”的文件,然后运行下载的文件并进行安装。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何使用 Python 3.4.2 在 Windows 7 中安装 scipy 的相关文章

随机推荐

  • 推送通知设备令牌?

    如何从我的 iPhone 设备获取设备令牌 此方法将在调试模式下在控制台中打印 deviceToken 如果您想查看设备令牌 也可以在 UIAlert 中看到 void application UIApplication applicati
  • Response.ContentType application/vnd.ms-excel xls 停止工作

    我对这个问题做了一些相当深入的搜索 但没有运气 在过去的几天里 从 HTML 到 XLS 的输出似乎已停止在我支持的许多旧版 阅读 经典 ASP 系统上运行 我已经能够在多个服务器 从 Office 2010 到 Office 2016 的
  • 将 contains_eager 与过滤器一起使用,但不过滤掉没有匹配子代的父代[重复]

    这个问题在这里已经有答案了 阅读 SQLAlchemy 文档 http docs sqlalchemy org en latest orm loading relationships html using contains eager to
  • SQL“float”数据类型在作为 XML 输出时会导致不需要的浮点结果

    您可以简单地尝试 table1 有一个类型为 float 的column1 代替 SELECT column1 from Table1 给出如表中所示的值 假设返回 15 1 但是 如果你尝试 Select column1 from Tab
  • GridSearchCV 历史最佳模型 CV

    我正在尝试将 GridSearchCV 与 KerasRegressor 一起使用进行超参数搜索 Keras model fit 函数本身允许使用历史对象查看 loss 和 val loss 变量 使用 GridSearchCV 时是否可以
  • Python:有什么方法可以声明常量参数吗?

    我有一个方法 def foo bar 有没有办法标记bar作为常数 例如 价值在bar不能改变 或 所指向的对象bar不能变 如果 bar 是不可变对象 则 bar 在函数执行期间不会改变 您还可以创建自己的常量对象 食谱在这里 http
  • 设置 元素的背景颜色(高度未设置为 100%)适用于整个视口

    我发现为整个设置背景颜色元素 高度未设置为 100 导致整个视口设置为该颜色 这个html 1 br 2 br 3
  • C++ 构建系统 - 使用什么? [关闭]

    Closed 此问题正在寻求书籍 工具 软件库等的推荐 不满足堆栈溢出指南 help closed questions 目前不接受答案 我正在考虑用 C 启动一个新项目 最初是在我自己的时间 并且我正在研究可用的构建系统 答案似乎是 很多
  • 在 Java 中开发具有插件支持的应用程序

    我一直在研究如何开发一个可以加载插件的应用程序 到目前为止 我已经看到这可以通过定义一个接口来完成 并让插件实现它 然而 我当前的问题是如何加载打包在 Jars 中的插件 有没有 最好 的方法来做到这一点 我当前想到的逻辑是获取每个插件并在
  • Solr - 从数据库导入日期时间字段 -> 2 小时差异

    我正在 Solr 中导入日期时间列 SQLServer 并且 solr 中的值始终比数据库中早 2 小时 并且具有完整导入和增量导入 我已经用正确的时间配置了jvm 在日志中它显示了正确的时间 我想我必须在 data config xml
  • 使用acts_as_taggable_on 搜索表单 (Rails 3)

    我有一个搜索框来搜索产品 每个产品都有一个标题并标有多个标签 我希望能够按标题或标签搜索产品 换句话说 如果我有一个名为 绿茶 的产品和另一个标记为 绿色 红色 蓝色 的产品 并且我在搜索框中输入 绿色 我希望这两种产品都出现在搜索结果中
  • 将具有不同格式的文本文件读取到 MATLAB

    我有一个文本文件 但不幸的是它的格式很差 但是我想将文本文件的内容读入矩阵 但我不知道该怎么做 当尝试使用fscanf textscan textread其余的它只是将所有内容复制到一个单元格中 但我不希望那样 内容如下 所以我只想读取小数
  • Rake:记录任何正在执行的任务

    如何在不更改任务源的情况下为每个 rake 任务创建数据库日志记录 我需要存储日期时间 任务名称 参数 有某种观察者等吗 您可以覆盖Rake Task invoke中的方法application rb application rb modu
  • 使用错误:未找到行魔术函数“%sql”

    reload ext sql sql sqlite 第二行无法编译 报告显示 UsageError Line magic function sql未找到 用Python3 8 jupyter笔记本 我使用 conda 安装 ipython
  • 测量库调用和回调之间的时间

    你好 在 iPhone 应用程序中 我使用一个库 C 它在计算完成时异步进行回调 现在我想测量在进行回调之前所花费的时间 包括调用库的方法 是否有可能使用 Apple 的 Instruments 应用程序来做到这一点 最佳实践是什么 过去
  • C++ 跨文件引用变量

    我有一个项目 需要在另一个 CPP 文件中引用一个 CPP 文件中声明的变量 这可能吗 如果是这样 怎么办 如果您将其声明为全局 顶级 位于任何函数定义之上 并使用 extern 这是可能的放在其他文件中以使编译器知道 Main cpp i
  • Ruby Mongodb 驱动程序 $gt 在日期条件下充当 $gte,为什么?

    我有一个奇怪的情况 gt and gteruby mongodb 驱动程序中的条件 所以这是代码 timeline timeline db find date gt gt s time username in gt followers ar
  • 如何在 Perl 中替换现有文件中的字符串

    我想在名为 1 classification dat 2 classification dat 等的所有文本文件中将 蓝色 一词替换为 红色 我想编辑同一个文件 所以我尝试了以下代码 但它不起作用 我哪里出错了 files glob cla
  • 使用python更改Windows快捷方式.lnk文件的图标

    我想更改a的图标 lnk我创建后的文件 到目前为止 这是我的主要代码 import win32com client shell win32com client Dispatch WScript Shell shortcut shell Cr
  • 如何使用 Python 3.4.2 在 Windows 7 中安装 scipy

    我安装时遇到问题scipy 当我跑步时 python m pip install scipy 我收到以下消息 C Python34 lib site packages pip main py run on 01 14 15 15 56 16