pfmarteau / TWED

Time Warp Edit Distance
MIT License
6 stars 3 forks source link

install error,envs:win10 python3.9.7,may you give some tips,thank you very much #1

Open YouYuangang opened 2 years ago

YouYuangang commented 2 years ago

running install running build running build_ext building 'TWED' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\01-program_code\anaconda\include -ID:\01-program_code\anaconda\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -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 /TcTWED.c /Fobuild\temp.win-amd64-3.9\Release\TWED.obj TWED.c TWED.c(4): fatal error C1083: 无法打开包括文件: “numpy/arrayobject.h”: No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2

pfmarteau commented 2 years ago

I have modified the source code of TWED.c to specify the absolute paths to the Python.h and numpy/arrayobject.h files. This is working on linux. Icannot test it on Windows unfortunately. You have to locate first on your machine these two headers and then correct the paths that I have introduced (may be a useful link for windows platforms https://github.com/aspuru-guzik-group/phoenics/issues/4). Please tell me if you could find a way to compile the TWED.c. Best, pf