- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是一个边界 super 用户问题。我一直在使用 pip install <x>
从 Windows 10 上的 powershell 将软件包添加到我的 3.6.2 安装中。我正在努力安装 CVXPY。具体来说,我已经升级了 setuptools 并安装了 visual studio c++ 14。另外,我按照 github 用户的建议安装了 C++ 2008:https://github.com/embotech/ecos/issues/53 .但是,我无法实现她的其他建议(编辑 ecosmodules.c),因为我认为我从 github 下载的原始包中不存在该文件
以下是我尝试通过 pip install ecos
安装关键依赖项 eCos 时的回溯.
Collecting ecos
Using cached https://files.pythonhosted.org/packages/b6/b4/988b15513b13e8ea2eac65e97d84221ac515a735a93f046e2a2a3d7863fc/ecos-2.0.5.tar.gz
Requirement already satisfied: numpy>=1.6 in c:\python36\lib\site-packages (from ecos) (1.14.2)
Requirement already satisfied: scipy>=0.9 in c:\python36\lib\site-packages (from ecos) (1.1.0)
Building wheels for collected packages: ecos
Running setup.py bdist_wheel for ecos ... error
Complete output from command c:\python36\python3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\tpittman\\AppData\\Local\\Temp\\pip-install-6n1cuqcw\\ecos\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\tpittman\AppData\Local\Temp\pip-wheel-cz4uosgf --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying src\ecos.py -> build\lib.win-amd64-3.6
running build_ext
building '_ecos' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\ecos
creating build\temp.win-amd64-3.6\Release\ecos\external
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl\src
creating build\temp.win-amd64-3.6\Release\ecos\src
creating build\temp.win-amd64-3.6\Release\ecos\external\amd
creating build\temp.win-amd64-3.6\Release\ecos\external\amd\src
creating build\temp.win-amd64-3.6\Release\ecos\ecos_bb
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcsrc/ecosmodule.c /Fobuild\temp.win-amd64-3.6\Release\src/ecosmodule.obj
ecosmodule.c
ecos/include\ecos_bb.h(72): warning C4005: 'INFINITY': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): note: see previous definition of 'INFINITY'
ecos/include\ecos_bb.h(74): warning C4005: 'isinf': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(275): note: see previous definition of 'isinf'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/external/ldl/src/ldl.c /Fobuild\temp.win-amd64-3.6\Release\ecos/external/ldl/src/ldl.obj
ldl.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
ecos/external/SuiteSparse_config\../../include/glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): 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\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/src/cone.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/cone.obj
cone.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): warning C4005: 'NAN': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/src/ctrlc.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ctrlc.obj
ctrlc.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): warning C4005: 'NAN': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/src/ecos.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ecos.obj
ecos.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): warning C4005: 'NAN': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.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\\2017\\Community\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for ecos
Running setup.py clean for ecos
Failed to build ecos
Installing collected packages: ecos
Running setup.py install for ecos ... error
Complete output from command c:\python36\python3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\tpittman\\AppData\\Local\\Temp\\pip-install-6n1cuqcw\\ecos\\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\tpittman\AppData\Local\Temp\pip-record-ngyh01oq\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying src\ecos.py -> build\lib.win-amd64-3.6
running build_ext
building '_ecos' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\ecos
creating build\temp.win-amd64-3.6\Release\ecos\external
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl\src
creating build\temp.win-amd64-3.6\Release\ecos\src
creating build\temp.win-amd64-3.6\Release\ecos\external\amd
creating build\temp.win-amd64-3.6\Release\ecos\external\amd\src
creating build\temp.win-amd64-3.6\Release\ecos\ecos_bb
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcsrc/ecosmodule.c /Fobuild\temp.win-amd64-3.6\Release\src/ecosmodule.obj
ecosmodule.c
ecos/include\ecos_bb.h(72): warning C4005: 'INFINITY': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): note: see previous definition of 'INFINITY'
ecos/include\ecos_bb.h(74): warning C4005: 'isinf': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(275): note: see previous definition of 'isinf'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/external/ldl/src/ldl.c /Fobuild\temp.win-amd64-3.6\Release\ecos/external/ldl/src/ldl.obj
ldl.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
ecos/external/SuiteSparse_config\../../include/glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): 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\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/src/cone.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/cone.obj
cone.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): warning C4005: 'NAN': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/src/ctrlc.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ctrlc.obj
ctrlc.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): warning C4005: 'NAN': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Ic:\python36\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcecos/src/ecos.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ecos.obj
ecos.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(90): warning C4005: 'INFINITY': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt\corecrt_math.h(94): warning C4005: 'NAN': macro redefinition
c:\users\tpittman\appdata\local\temp\pip-install-6n1cuqcw\ecos\ecos\include\glblopts.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\\2017\\Community\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\python36\python3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\tpittman\\AppData\\Local\\Temp\\pip-install-6n1cuqcw\\ecos\\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\tpittman\AppData\Local\Temp\pip-record-ngyh01oq\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\tpittman\AppData\Local\Temp\pip-install-6n1cuqcw\ecos\
最佳答案
在基于 Anaconda 的 Win64 Python36 安装上
conda install ecos
为我工作。
哪个允许 pip install cvxpy。
关于python - cvxpy/ecos pip安装报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50591149/
我有一个目标函数,它取决于外积的总和。如果我可以使用 Numpy 函数,我会这样写: A = np.ones(m, n) U = Variable(m, n) objective = np.trace
目的:我试图在 python 中使用 cvxpy 来最大化 dual_func,但是我得到下面的 SolverError,我相信它可能是 Variable 具有不同的维度,但似乎无法弄清楚这个问题。我
可能有某个地方漂浮的答案,但我找不到。 我想最小化具有变量 X >= 0 和一阶导数矩阵 D,因此 X 在列方向上是平滑的并且具有相对大的数据。 过去我使用过各种方法来解决这个问题(例如使用 scip
背景:我是 PyPortfolioOpt 的开发者,一个 python 投资组合优化库,我试图允许用户向最大夏普比率问题添加约束。 目前,用户可以将他们的约束作为 lambda 函数传递,例如使所有权
我正在使用以下代码: import sys, numpy as np import cvxpy as cvx if __name__ == '__main__': sims = np.rand
我正在尝试编写一个搜索时钟频率和除数的程序来生成目标频率。然而,一个限制是除数必须是偶数(由于硬件限制),我找不到一种方法来对此进行建模。 我没有得到模运算符支持 "TypeError: unsupp
我正在尝试在 CVXPY 中实现此 LP: 但我正在努力寻找一种有效的方法来实现这里的第一个约束。我发现有效的唯一方法是将每个总和作为其自己的约束添加,但随着问题的规模变大,其规模会迅速扩大。有没有更
我正在使用 CVXPY(1.0 版)。我不明白是什么导致了 ZERO 表达式和 NONNEGATIVE 表达式之间的差异,如以下代码所示: >>> import cvxpy as cv >>> a =
我试图在 Python 中使用 cvxpy 强制变量为整数(整数约束),但结果仍然是 float : from cvxpy import * Fi = Int() Or = Int() constr
我在 CVXPY modelling language 中定义了一个大问题.我想解决一系列这样的问题 - 仍然是相同的格式但具有不同的参数(常量)。 我发现在调用 problem.solve() 之后
我正在尝试在目标函数的 CVXPY 中进行逐元素乘法。这是否允许作为凸问题的一部分? X 是一个 n x 1 变量。V 是一个 n x n 常数。 我想执行与 np.multiply(X, V*X)
这个问题在这里已经有了答案: How to convert quadratic to linear program? (1 个回答) 关闭 7 年前。 我需要一个可以将两个非常数相乘的 LP。这是我
这是一个边界 super 用户问题。我一直在使用 pip install 从 Windows 10 上的 powershell 将软件包添加到我的 3.6.2 安装中。我正在努力安装 CVXPY。具体
我正在尝试使用 CVXPY 解决 Python 中的投资组合优化问题,但收到错误 sum_entries 未定义。我正在使用 Anaconda 2.7 和 Jupyter 笔记本。我已经使用 cond
我正在尝试使用 cvxpy 进行优化。 w=cvxpy.Variable((10,1)) cvxpy.kron(w,w) 这不起作用说第一个参数应该是常量, 然后我尝试使用 numpy numpy.k
我正在尝试使用 CVXPY 包(使用 ECOS 求解器)解决 Python 中的优化问题。该问题涉及最小化受多个约束的线性变量。问题本身是拟凸的,所以我实现了二分算法来找到最优解。 问题在于,当二分越
在解决 cvxpy 中的优化问题时,是否有一种很好的方法可以通过将优化变量替换为实际值来检查约束是否有效? 我有一个复杂的优化问题(100 多个约束),但我知道最优解应该是什么。但是,cvxpy 失败
假设我的约束条件是矩阵变量的第一列和第三列的乘积大于 1。我如何在 CVXPY 中实现?示例: w = Variable(4,3) 在 Matlab 中,我的约束是: w(:,1)'*w(:,3)>1
使用 CVXPY 时,我经常遇到“SolverError”。他们的doc只是说这是由数值问题引起的,但没有提供有关如何避免这些问题的更多信息。 下面的代码片段是一个例子,问题很简单,但是 'CVXOP
如何在 cvxpy 中反转变量矩阵? 我有一个问题变量矩阵,定义如下: import cvxpy as cp A = cp.Variable(2,2) 我想求解一个目标函数涉及该矩阵的逆的程序。我几乎
我是一名优秀的程序员,十分优秀!