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: Microsoft Visual C++ 14.0 is required' when run pip install #30

Closed nazmibojan closed 6 years ago

nazmibojan commented 6 years ago

Hi All,

Sorry for this newbie question. I got this error after run pip install pyemd: building 'pyemd.emd' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

I think I have installed VCC 14.0. This is my program screenshots: vcc

How can I solve this problem? Thank you very much.

Regards, Nazmi

wmayner commented 6 years ago

Hi Nazmi,

I'm not very familiar with using Python on Windows, and I can only support PyEMD on Linux and macOS systems. However, I can recommend that you try using Anaconda's distribution of Python: there is a conda-forge build of PyEMD available. I've found that this is often the best way for Windows users to run Python packages.

Cheers, Will

kdalbey commented 4 years ago

https://www.scivision.dev/python-windows-visual-c-14-required/ should provide a solution to this problem