【问题标题】:Problems installing pip and scipy on window 8, python3.5.1 64 bit在窗口 8、python3.5.1 64 位上安装 pip 和 scipy 时出现问题
【发布时间】:2017-09-19 07:41:43
【问题描述】:

C:\Users\LakhanS>pip install scipy 收集 scipy 使用缓存的 scipy-0.19.0.zip 为收集的包构建轮子:scipy 为 scipy 运行 setup.py bdist_wheel ... 错误 命令 c:\users\lakhans\appdata\local\programs\python\py 的完整输出 thon35\python.exe -u -c "导入设置工具,标记化;文件='C:\Users\Lakhan S\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.py';f=getattr(tokenize , 'open', open)(文件);code=f.read().replace('\r\n', '\n');f.close();exec(com 桩(代码,文件,'exec'))" bdist_wheel -d C:\Users\LakhanS\AppData\Local\Tem p\tmpe52okcwapip-wheel---python-tag cp35: lapack_opt_info: openblas_lapack_info: 在 ['c:\users\lakhans\appdata\local\progra 中找不到库 openblas ms\python\python35\lib', 'C:\', 'c:\users\lakhans\appdata\local\program s\python\python35\libs'] 不可用

  lapack_mkl_info:
    libraries mkl_rt not found in ['c:\\users\\lakhans\\appdata\\local\\programs
\\python\\python35\\lib', 'C:\\', 'c:\\users\\lakhans\\appdata\\local\\programs\
\python\\python35\\libs']
    NOT AVAILABLE

  atlas_3_10_threads_info:
  Setting PTATLAS=ATLAS
  c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nump
y\distutils\system_info.py:639: UserWarning: Specified path C:\projects\numpy-wh
eels\windows-wheel-builder\atlas-builds\atlas-3.11.38-sse2-64\lib is invalid.
    warnings.warn('Specified path %s is invalid.' % d)
  <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
    NOT AVAILABLE

  atlas_3_10_info:
  <class 'numpy.distutils.system_info.atlas_3_10_info'>
    NOT AVAILABLE

  atlas_threads_info:
  Setting PTATLAS=ATLAS
  <class 'numpy.distutils.system_info.atlas_threads_info'>
    NOT AVAILABLE

  atlas_info:
  <class 'numpy.distutils.system_info.atlas_info'>
    NOT AVAILABLE

  c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nump
y\distutils\system_info.py:1532: 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__)
  lapack_info:
    libraries lapack not found in ['c:\\users\\lakhans\\appdata\\local\\programs
\\python\\python35\\lib', 'C:\\', 'c:\\users\\lakhans\\appdata\\local\\programs\
\python\\python35\\libs']
    NOT AVAILABLE

  c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nump
y\distutils\system_info.py:1543: 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__)
  lapack_src_info:
    NOT AVAILABLE

  c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nump
y\distutils\system_info.py:1546: 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__)
    NOT AVAILABLE

  Running from scipy source directory.
  non-existing path in 'scipy\\integrate': 'quadpack.h'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.py"
, line 416, in <module>
      setup_package()
    File "C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.py"
, line 412, in setup_package
      setup(**metadata)
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\core.py", line 135, in setup
      config = configuration()
    File "C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.py"
, line 336, in configuration
      config.add_subpackage('scipy')
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\misc_util.py", line 1000, in add_subpackage
      caller_level = 2)
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\misc_util.py", line 969, in get_subpackage
      caller_level = caller_level + 1)
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\misc_util.py", line 906, in _get_configuration_from_setup_py

      config = setup_module.configuration(*args)
    File "scipy\setup.py", line 15, in configuration
      config.add_subpackage('linalg')
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\misc_util.py", line 1000, in add_subpackage
      caller_level = 2)
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\misc_util.py", line 969, in get_subpackage
      caller_level = caller_level + 1)
    File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packa
ges\numpy\distutils\misc_util.py", line 906, in _get_configuration_from_setup_py

      config = setup_module.configuration(*args)
    File "scipy\linalg\setup.py", line 20, in configuration
      raise NotFoundError('no lapack/blas resources found')
  numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

  ----------------------------------------
  Failed building wheel for scipy
  Running setup.py clean for scipy
  Complete output from command c:\users\lakhans\appdata\local\programs\python\py
thon35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Lakhan
S\\AppData\\Local\\Temp\\pip-build-mkzc0d6e\\scipy\\setup.py';f=getattr(tokenize
, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(com
pile(code, __file__, 'exec'))" clean --all:

  `setup.py clean` is not supported, use one of the following instead:

    - `git clean -xdf` (cleans all files)
    - `git clean -Xdf` (cleans all versioned files, doesn't touch
                        files that aren't checked into the git repo)

  Add `--force` to your command to use it anyway if you must (unsupported).


  ----------------------------------------
  Failed cleaning build dir for scipy
Failed to build scipy
Installing collected packages: scipy
  Running setup.py install for scipy ... error
    Complete output from command c:\users\lakhans\appdata\local\programs\python\
python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Lakh
anS\\AppData\\Local\\Temp\\pip-build-mkzc0d6e\\scipy\\setup.py';f=getattr(tokeni
ze, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(c
ompile(code, __file__, 'exec'))" install --record C:\Users\LakhanS\AppData\Local
\Temp\pip-ed1va6j1-record\install-record.txt --single-version-externally-managed
 --compile:

    Note: if you need reliable uninstall behavior, then install
    with pip instead of using `setup.py install`:

      - `pip install .`       (from a git repo or downloaded source
                               release)
      - `pip install scipy`   (last SciPy release on PyPI)


    lapack_opt_info:
    openblas_lapack_info:
      libraries openblas not found in ['c:\\users\\lakhans\\appdata\\local\\prog
rams\\python\\python35\\lib', 'C:\\', 'c:\\users\\lakhans\\appdata\\local\\progr
ams\\python\\python35\\libs']
      NOT AVAILABLE

    lapack_mkl_info:
      libraries mkl_rt not found in ['c:\\users\\lakhans\\appdata\\local\\progra
ms\\python\\python35\\lib', 'C:\\', 'c:\\users\\lakhans\\appdata\\local\\program
s\\python\\python35\\libs']
      NOT AVAILABLE

    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nu
mpy\distutils\system_info.py:639: UserWarning: Specified path C:\projects\numpy-
wheels\windows-wheel-builder\atlas-builds\atlas-3.11.38-sse2-64\lib is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE

    atlas_3_10_info:
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE

    atlas_threads_info:
    Setting PTATLAS=ATLAS
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE

    atlas_info:
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE

    c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nu
mpy\distutils\system_info.py:1532: 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__)
    lapack_info:
      libraries lapack not found in ['c:\\users\\lakhans\\appdata\\local\\progra
ms\\python\\python35\\lib', 'C:\\', 'c:\\users\\lakhans\\appdata\\local\\program
s\\python\\python35\\libs']
      NOT AVAILABLE

    c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nu
mpy\distutils\system_info.py:1543: 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__)
    lapack_src_info:
      NOT AVAILABLE

    c:\users\lakhans\appdata\local\programs\python\python35\lib\site-packages\nu
mpy\distutils\system_info.py:1546: 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__)
      NOT AVAILABLE

    Running from scipy source directory.
    non-existing path in 'scipy\\integrate': 'quadpack.h'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.p
y", line 416, in <module>
        setup_package()
      File "C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.p
y", line 412, in setup_package
        setup(**metadata)
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\core.py", line 135, in setup
        config = configuration()
      File "C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\setup.p
y", line 336, in configuration
        config.add_subpackage('scipy')
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\misc_util.py", line 1000, in add_subpackage
        caller_level = 2)
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\misc_util.py", line 969, in get_subpackage
        caller_level = caller_level + 1)
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\misc_util.py", line 906, in _get_configuration_from_setup_
py
        config = setup_module.configuration(*args)
      File "scipy\setup.py", line 15, in configuration
        config.add_subpackage('linalg')
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\misc_util.py", line 1000, in add_subpackage
        caller_level = 2)
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\misc_util.py", line 969, in get_subpackage
        caller_level = caller_level + 1)
      File "c:\users\lakhans\appdata\local\programs\python\python35\lib\site-pac
kages\numpy\distutils\misc_util.py", line 906, in _get_configuration_from_setup_
py
        config = setup_module.configuration(*args)
      File "scipy\linalg\setup.py", line 20, in configuration
        raise NotFoundError('no lapack/blas resources found')
    numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

    ----------------------------------------
Command "c:\users\lakhans\appdata\local\programs\python\python35\python.exe -u -
c "import setuptools, tokenize;__file__='C:\\Users\\LakhanS\\AppData\\Local\\Tem
p\\pip-build-mkzc0d6e\\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\LakhanS\AppData\Local\Temp\pip-ed1va6j1-recor
d\install-record.txt --single-version-externally-managed --compile" failed with
error code 1 in C:\Users\LakhanS\AppData\Local\Temp\pip-build-mkzc0d6e\scipy\

C:\Users\LakhanS>^A
'☺' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\LakhanS>

【问题讨论】:

    标签: python cmd scipy pip installation


    【解决方案1】:

    访问http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

    下载文件 scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl

    将其保存在 C:\Python35\Scripts

    使用以下脚本安装:

    cd C:\Python35\Scripts
    
    pip install "scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl"
    

    【讨论】:

    • @LakhanPahuja 发生错误时是否有任何消息或提示?
    • 无论如何都没有找到答案,但我安装 ANACONDA 问题已解决
    • 这可以在英特尔处理器上工作吗?如果没有,你会为 64 位英特尔做什么?
    猜你喜欢
    • 2014-12-26
    • 2017-07-31
    • 2018-11-06
    • 1970-01-01
    • 1970-01-01
    • 2021-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多