进行花式插补的构建轮失败

进行花式插补的构建轮失败

本文介绍了使用 pip install 进行花式插补的构建轮失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 anaconda py3.6、win 10、64 位上安装 Fancyimpute.收到以下错误.

I am trying to install Fancyimpute on anaconda py3.6, win 10, 64 Bit. Getting the following error.

Collecting fancyimpute
Requirement already satisfied: downhill in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: numpy>=1.10 in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: scikit-learn>=0.17.1 in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: theano in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: scipy in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: climate in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: knnimpute in c:anaconda3libsite-packages (from fancyimpute)
Requirement already satisfied: six in c:anaconda3libsite-packages (from fancyimpute)
Collecting cvxpy (from fancyimpute)
  Using cached cvxpy-0.4.10-py3-none-any.whl
Requirement already satisfied: click in c:anaconda3libsite-packages (from downhill->fancyimpute)
Requirement already satisfied: plac in c:anaconda3libsite-packages (from climate->fancyimpute)
Requirement already satisfied: scs>=1.1.3 in c:anaconda3libsite-packages (from cvxpy->fancyimpute)
Requirement already satisfied: fastcache in c:anaconda3libsite-packages (from cvxpy->fancyimpute)
Requirement already satisfied: CVXcanon>=0.0.22 in c:anaconda3libsite-packages (from cvxpy->fancyimpute)
Requirement already satisfied: toolz in c:anaconda3libsite-packages (from cvxpy->fancyimpute)
Collecting ecos>=2 (from cvxpy->fancyimpute)
  Using cached ecos-2.0.4.tar.gz
Requirement already satisfied: multiprocess in c:anaconda3libsite-packages (from cvxpy->fancyimpute)
Requirement already satisfied: dill>=0.2.6 in c:anaconda3libsite-packages (from multiprocess->cvxpy->fancyimpute)
Building wheels for collected packages: ecos
  Running setup.py bdist_wheel for ecos: started
  Running setup.py bdist_wheel for ecos: finished with status 'error'
  Complete output from command C:Anaconda3python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Akshay\AppData\Local\Temp\pip-build-99u1p4_i\ecos\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersAkshayAppDataLocalTemp	mpdmxhbqacpip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating buildlib.win-amd64-3.6
  copying srcecos.py -> buildlib.win-amd64-3.6
  running build_ext
  building '_ecos' extension
  creating build	emp.win-amd64-3.6
  creating build	emp.win-amd64-3.6Release
  creating build	emp.win-amd64-3.6Releasesrc
  creating build	emp.win-amd64-3.6Releaseecos
  creating build	emp.win-amd64-3.6Releaseecosexternal
  creating build	emp.win-amd64-3.6Releaseecosexternalldl
  creating build	emp.win-amd64-3.6Releaseecosexternalldlsrc
  creating build	emp.win-amd64-3.6Releaseecossrc
  creating build	emp.win-amd64-3.6Releaseecosexternalamd
  creating build	emp.win-amd64-3.6Releaseecosexternalamdsrc
  creating build	emp.win-amd64-3.6Releaseecosecos_bb
  C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcsrc/ecosmodule.c /Fobuild	emp.win-amd64-3.6Releasesrc/ecosmodule.obj
  ecosmodule.c
  ecos/includeecos_bb.h(72): warning C4005: 'INFINITY': macro redefinition
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): note: see previous definition of 'INFINITY'
  ecos/includeecos_bb.h(74): warning C4005: 'isinf': macro redefinition
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(263): note: see previous definition of 'isinf'
  C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/external/ldl/src/ldl.c /Fobuild	emp.win-amd64-3.6Releaseecos/external/ldl/src/ldl.obj
  ldl.c
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
  ecos/external/SuiteSparse_config../../include/glblopts.h(58): note: see previous definition of 'INFINITY'
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
  ecos/external/SuiteSparse_config../../include/glblopts.h(53): note: see previous definition of 'NAN'
  C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/src/cone.c /Fobuild	emp.win-amd64-3.6Releaseecos/src/cone.obj
  cone.c
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
  c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(58): note: see previous definition of 'INFINITY'
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
  c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(53): note: see previous definition of 'NAN'
  C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/src/ctrlc.c /Fobuild	emp.win-amd64-3.6Releaseecos/src/ctrlc.obj
  ctrlc.c
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
  c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(58): note: see previous definition of 'INFINITY'
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
  c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(53): note: see previous definition of 'NAN'
  C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/src/ecos.c /Fobuild	emp.win-amd64-3.6Releaseecos/src/ecos.obj
  ecos.c
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
  c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(58): note: see previous definition of 'INFINITY'
  C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
  c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(53): note: see previous definition of 'NAN'
  ecos/src/ecos.c(1093): warning C4013: '_set_output_format' undefined; assuming extern returning int
  ecos/src/ecos.c(1093): error C2065: '_TWO_DIGIT_EXPONENT': undeclared identifier
  error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

  ----------------------------------------
  Running setup.py clean for ecos
Failed to build ecos
Installing collected packages: ecos, cvxpy, fancyimpute
  Running setup.py install for ecos: started
    Running setup.py install for ecos: finished with status 'error'
    Complete output from command C:Anaconda3python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Akshay\AppData\Local\Temp\pip-build-99u1p4_i\ecos\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersAkshayAppDataLocalTemppip-mgnxokqc-recordinstall-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating buildlib.win-amd64-3.6
    copying srcecos.py -> buildlib.win-amd64-3.6
    running build_ext
    building '_ecos' extension
    creating build	emp.win-amd64-3.6
    creating build	emp.win-amd64-3.6Release
    creating build	emp.win-amd64-3.6Releasesrc
    creating build	emp.win-amd64-3.6Releaseecos
    creating build	emp.win-amd64-3.6Releaseecosexternal
    creating build	emp.win-amd64-3.6Releaseecosexternalldl
    creating build	emp.win-amd64-3.6Releaseecosexternalldlsrc
    creating build	emp.win-amd64-3.6Releaseecossrc
    creating build	emp.win-amd64-3.6Releaseecosexternalamd
    creating build	emp.win-amd64-3.6Releaseecosexternalamdsrc
    creating build	emp.win-amd64-3.6Releaseecosecos_bb
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcsrc/ecosmodule.c /Fobuild	emp.win-amd64-3.6Releasesrc/ecosmodule.obj
    ecosmodule.c
    ecos/includeecos_bb.h(72): warning C4005: 'INFINITY': macro redefinition
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): note: see previous definition of 'INFINITY'
    ecos/includeecos_bb.h(74): warning C4005: 'isinf': macro redefinition
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(263): note: see previous definition of 'isinf'
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/external/ldl/src/ldl.c /Fobuild	emp.win-amd64-3.6Releaseecos/external/ldl/src/ldl.obj
    ldl.c
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
    ecos/external/SuiteSparse_config../../include/glblopts.h(58): note: see previous definition of 'INFINITY'
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
    ecos/external/SuiteSparse_config../../include/glblopts.h(53): note: see previous definition of 'NAN'
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/src/cone.c /Fobuild	emp.win-amd64-3.6Releaseecos/src/cone.obj
    cone.c
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
    c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(58): note: see previous definition of 'INFINITY'
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
    c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(53): note: see previous definition of 'NAN'
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/src/ctrlc.c /Fobuild	emp.win-amd64-3.6Releaseecos/src/ctrlc.obj
    ctrlc.c
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
    c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(58): note: see previous definition of 'INFINITY'
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
    c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(53): note: see previous definition of 'NAN'
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINx86_amd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:Anaconda3libsite-packages
umpycoreinclude -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:Anaconda3include -IC:Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcecos/src/ecos.c /Fobuild	emp.win-amd64-3.6Releaseecos/src/ecos.obj
    ecos.c
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(78): warning C4005: 'INFINITY': macro redefinition
    c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(58): note: see previous definition of 'INFINITY'
    C:Program Files (x86)Windows Kits10include10.0.10240.0ucrtmath.h(82): warning C4005: 'NAN': macro redefinition
    c:usersakshayappdatalocal	emppip-build-99u1p4_iecosecosincludeglblopts.h(53): note: see previous definition of 'NAN'
    ecos/src/ecos.c(1093): warning C4013: '_set_output_format' undefined; assuming extern returning int
    ecos/src/ecos.c(1093): error C2065: '_TWO_DIGIT_EXPONENT': undeclared identifier
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

    ----------------------------------------
  Failed building wheel for ecos
Command "C:Anaconda3python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Akshay\AppData\Local\Temp\pip-build-99u1p4_i\ecos\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersAkshayAppDataLocalTemppip-mgnxokqc-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersAkshayAppDataLocalTemppip-build-99u1p4_iecos

该错误与以下内容有关 -生态建设轮子失败

The error has something to do with the following -Failed building wheel for ecos

最初它向我展示了 Visual Studio C++ 的错误,在安装了 VS 2015 C++ Build Tools 之后,它仍然给出了类似的错误,但这次是由于其他原因.我一直无法找到解决此问题的方法.将不胜感激.

Initially it was showing me error with the visual studio c++ and after installation of VS 2015 C++ Build Tools it still gave a similar error, but this time if was due to something else. I haven't been able to figure out a way to fix this. Will appreciate some help with this.

提前致谢!

推荐答案

遇到同样的问题 (ecos 2.0.4) 并找到了这个线程:ecos python 问题

Ran into the same problem (ecos 2.0.4) and came upon this thread: ecos python issue

通过手动下载合适的.whl文件(Python版本和Windows架构)解决了问题:Windows 二进制文件

Solved the problem by manually downloading the appropriate .whl file (Python version and Windows architecture): Windows binaries

导航到下载的文件(在终端中)并运行 pip install filename.whl.

Navigated to the downloaded file (in terminal) and ran pip install filename.whl.

这篇关于使用 pip install 进行花式插补的构建轮失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 22:41