wmayner / pyemd

Fast EMD for Python: a wrapper for Pele and Werman's C++ implementation of the Earth Mover's Distance metric
MIT License
479 stars 62 forks source link

ERROR: Failed building wheel for pyemd #45

Closed aiwalter closed 5 years ago

aiwalter commented 5 years ago

I have an installation issue. I am using Python 3.7.3 on Windows 10. Any suggestions?

   command: 'c:\users\walmar2\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\WALMAR2\\AppData\\Local\\Temp\\pip-install-_iqwmdp1\\pyemd\\setup.py'"'"'; __file__='"'"'C:\\Users\\WALMAR2\\AppData\\Local\\Temp\\pip-install-_iqwmdp1\\pyemd\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\WALMAR2\AppData\Local\Temp\pip-wheel-y42hosf4' --python-tag cp37
       cwd: C:\Users\WALMAR2\AppData\Local\Temp\pip-install-_iqwmdp1\pyemd\
  Complete output (17 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\pyemd
  copying pyemd\__about__.py -> build\lib.win-amd64-3.7\pyemd
  copying pyemd\__init__.py -> build\lib.win-amd64-3.7\pyemd
  running build_ext
  building 'pyemd.emd' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\pyemd
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ipyemd -Ic:\users\walmar2\appdata\local\programs\python\python37\include -Ic:\users\walmar2\appdata\local\programs\python\python37\include -Ic:\users\walmar2\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /EHsc /Tppyemd/emd.cpp /Fobuild\temp.win-amd64-3.7\Release\pyemd/emd.obj
  emd.cpp
  c:\users\walmar2\appdata\local\programs\python\python37\include\pyconfig.h(203): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "basetsd.h": No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.21.27702\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for pyemd
aiwalter commented 5 years ago

Installation of C++ Build Tools has made it