我试图在Anaconda py3.6上安装花式,赢了10,64位。获取以下错误。
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('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersAkshayAppDataLocalTemptmpdmxhbqacpip-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 buildtemp.win-amd64-3.6
creating buildtemp.win-amd64-3.6Release
creating buildtemp.win-amd64-3.6Releasesrc
creating buildtemp.win-amd64-3.6Releaseecos
creating buildtemp.win-amd64-3.6Releaseecosexternal
creating buildtemp.win-amd64-3.6Releaseecosexternalldl
creating buildtemp.win-amd64-3.6Releaseecosexternalldlsrc
creating buildtemp.win-amd64-3.6Releaseecossrc
creating buildtemp.win-amd64-3.6Releaseecosexternalamd
creating buildtemp.win-amd64-3.6Releaseecosexternalamdsrc
creating buildtemp.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-packagesnumpycoreinclude -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 /Fobuildtemp.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-packagesnumpycoreinclude -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 /Fobuildtemp.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-packagesnumpycoreinclude -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 /Fobuildtemp.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:usersakshayappdatalocaltemppip-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:usersakshayappdatalocaltemppip-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-packagesnumpycoreinclude -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 /Fobuildtemp.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:usersakshayappdatalocaltemppip-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:usersakshayappdatalocaltemppip-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-packagesnumpycoreinclude -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 /Fobuildtemp.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:usersakshayappdatalocaltemppip-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:usersakshayappdatalocaltemppip-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('rn', 'n');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 buildtemp.win-amd64-3.6
creating buildtemp.win-amd64-3.6Release
creating buildtemp.win-amd64-3.6Releasesrc
creating buildtemp.win-amd64-3.6Releaseecos
creating buildtemp.win-amd64-3.6Releaseecosexternal
creating buildtemp.win-amd64-3.6Releaseecosexternalldl
creating buildtemp.win-amd64-3.6Releaseecosexternalldlsrc
creating buildtemp.win-amd64-3.6Releaseecossrc
creating buildtemp.win-amd64-3.6Releaseecosexternalamd
creating buildtemp.win-amd64-3.6Releaseecosexternalamdsrc
creating buildtemp.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-packagesnumpycoreinclude -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 /Fobuildtemp.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-packagesnumpycoreinclude -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 /Fobuildtemp.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-packagesnumpycoreinclude -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 /Fobuildtemp.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:usersakshayappdatalocaltemppip-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:usersakshayappdatalocaltemppip-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-packagesnumpycoreinclude -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 /Fobuildtemp.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:usersakshayappdatalocaltemppip-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:usersakshayappdatalocaltemppip-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-packagesnumpycoreinclude -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 /Fobuildtemp.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:usersakshayappdatalocaltemppip-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:usersakshayappdatalocaltemppip-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('rn', 'n');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
错误与以下内容有关 - ECOS的失败的建筑轮
最初,它向我显示了Visual Studio C 的错误,并且在安装VS 2015 C 构建工具后,它仍然给出类似的错误,但是这次是由于其他原因。我无法找到解决此问题的方法。会感谢您的帮助。
预先感谢!
遇到了相同的问题(ECOS 2.0.4(并登上此线程:ecos python问题
通过手动下载适当的.WHL文件(Python版本和Windows架构(解决了问题:Windows Binaries
导航到下载的文件(在终端(和ran pip install filename.whl
。