jacobjma / PyQSTEM

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

Install error: no file named 'unordered_map' #9

Open harripj opened 6 years ago

harripj commented 6 years ago

Hi, I am having an installation problem, would you be able to provide any advice?

I'm running Python 3.6+ (conda), on MacOS 10.13.4

pyqstem/qstem_interface.cpp:582:10: fatal error: 'unordered_map' file not found

include

     ^~~~~~~~~~~~~~~

1 error generated. error: command 'gcc' failed with exit status 1

Cheers!

jiadongdan commented 6 years ago

Hi, same here, any update?

harripj commented 6 years ago

I'm using MacOS. From the Cythonize setup flags in setup.py it may be to do with this. I had some luck with adding '-macosx-version-min=10.10' to extra_compile_args. But it's not there yet.

If this is the case it may install fine on Windows.

jiadongdan commented 6 years ago

I found a solution in pull request, I change the setup.py file according to the pull request. It worked!!! Maybe you should consider merging that into the master one.

Thank u for your reply!

Jiadong

Sent from my iPhone

On 1 Jun 2018, at 7:55 PM, paddyh087 notifications@github.com<mailto:notifications@github.com> wrote:

I'm using MacOS. From the Cythonize setup flags in setup.py it may be to do with this. I had some luck with adding '-macosx-version-min=10.10' to extra_compile_args. But it's not there yet.

If this is the case it may install fine on Windows.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/jacobjma/PyQSTEM/issues/9#issuecomment-393858484, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APDwYG92suvPYhUxLdTbwaBFjCVTJiceks5t4SvAgaJpZM4TgL5D.