Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install by py for python 3.10 #44

Closed
hehedaozuiteng opened this issue Feb 10, 2022 · 3 comments
Closed

Cannot install by py for python 3.10 #44

hehedaozuiteng opened this issue Feb 10, 2022 · 3 comments

Comments

@hehedaozuiteng
Copy link

hehedaozuiteng commented Feb 10, 2022

once run the code

pip install cvxpy

get the error, the error note is too mess so do not display them.

Noticed that, with a python 3.9 environment can successful instll, but python 3.10 cannot

@hehedaozuiteng hehedaozuiteng changed the title Cannot install by py for python 10 Cannot install by py for python 3.10 Feb 10, 2022
@Kerkos
Copy link

Kerkos commented Feb 10, 2022

does your error look like the error I'm getting?
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win-amd64-3.10\Release\cpp\qdldl.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
qdldl.cpp
c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

@hehedaozuiteng
Copy link
Author

does your error look like the error I'm getting? C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\include -IC:\Users\brian\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win-amd64-3.10\Release\cpp\qdldl.obj -std=c++11 cl : Command line warning D9002 : ignoring unknown option '-std=c++11' qdldl.cpp c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

yes

@Kerkos
Copy link

Kerkos commented Feb 11, 2022

I went to this site : https://www.lfd.uci.edu/~gohlke/pythonlibs/#Qdldl
Downloaded the wheel that matched my OS & Python and used that to successfully install qdldl. Once that package was successfully installed, the cvxpy package went right in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants