I configured my environment to use TDM-gcc as compiler when I want to install packages using pip.
I followed steps that told in this post;
When I try pip install qpsolvers
I get:
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-lxah5byx\quadprog\
Complete output (23 lines):
running bdist_wheel
running build
running build_ext
skipping 'quadprog\quadprog.cpp' Cython extension (up-to-date)
building 'quadprog' extension
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\quadprog
C:\TDM-GCC-64\bin\gcc.exe -mdll -O -Wall -Iquadprog -IE:\WPy64-3850\python-3.8.5.amd64\include -IE:\WPy64-3850\python-3.8.5.amd64\include -c quadprog\quadprog.cpp -o build\temp.win-amd64-3.8\Release\quadprog\quadprog.o
quadprog\quadprog.cpp:280:41: warning: division by zero [-Wdiv-by-zero]
280 | enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
quadprog\quadprog.cpp:280:79: error: division by zero is not a constant expression
280 | enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
| ^
quadprog\quadprog.cpp:280:41: error: '(1 / 0)' is not a constant expression
280 | enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
quadprog\quadprog.cpp:280:79: error: enumerator value for '__pyx_check_sizeof_voidp' is not an integer constant
280 | enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
| ^
error: command 'C:\\TDM-GCC-64\\bin\\gcc.exe' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for quadprog
I'm not c programmer and have no Idea how to fix this problem, But I find this solution, but I don't know how to apply this solution to work on pip. Any help would be much appreciated.
I use python 3.8.5, and gcc version 9.2.0 (tdm64-1).