Operating system, environment, python version
Windows 11
What you tried
pip install PyPortfolioOpt
Error message
Building wheel for ecos (pyproject.toml) did not run successfully
cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config "-IC:\Program Files\Python313\include" "-IC:\Program Files\Python313\Include" -IC:\Users\MYNAME\AppData\Local\Temp\pip-build-env-81i53r0a\overlay\Lib\site-packages\numpy\_core\include /Tcecos/ecos_bb\ecos_bb.c /Fobuild\temp.win32-cpython-313\Release\ecos\ecos_bb\ecos_bb.obj
error: command 'cl.exe' failed: None
I have this running on a couple of PCs, but on another PC I keep getting this error. I have VS installed and I just installed VS 2006. But I still get errors.
Is there any way you can get this built?
I vaguely remember that it may not need to be built under older versions of Python3. Does anyone know which version to use?