jacobjma / PyQSTEM

A Python interface to the electron microscopy simulation program QSTEM
GNU General Public License v3.0
61 stars 29 forks source link

Installation issue: cl.exe' failed with exit code 2 #23

Open yisonghan opened 2 years ago

yisonghan commented 2 years ago

`C:\Users\yisong\anaconda3\envs\qstem\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION pywt_extensions_pywt.c(12552): error C2440: '=': cannot convert from 'PyObject ' to 'double' pywt_extensions_pywt.c(12555): warning C4244: '=': conversion from 'double' to 'float', possible loss of data pywt_extensions_pywt.c(12566): error C2440: '=': cannot convert from 'PyObject ' to 'double' pywt_extensions_pywt.c(12569): warning C4244: '=': conversion from 'double' to 'float', possible loss of data pywt_extensions_pywt.c(12663): error C2440: '=': cannot convert from 'PyObject ' to 'double' pywt_extensions_pywt.c(12677): error C2440: '=': cannot convert from 'PyObject ' to 'double' pywt_extensions_pywt.c(12680): warning C4244: '=': conversion from 'double' to 'float', possible loss of data pywt_extensions_pywt.c(12691): error C2440: '=': cannot convert from 'PyObject *' to 'double' pywt_extensions_pywt.c(12694): warning C4244: '=': conversion from 'double' to 'float', possible loss of data

error: Setup script exited with error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe' failed with exit code 2`

I got problem with the cl.exe file when running "python setup.exe install". I installed Visual Studio 2022 build tools and in an Anaconda vitual environment with Python 3.6. I can see there is a cl.exe file in the same folder. So it shouldn't be a path problem? Could anyone help? Thanks very much.