When I used pip install leveldb in my MAC I got the error below, I searched the whole internet without any reply I could take with, my python env is 2.7, what made me upset
As you can see from the error message, the stdlibc++
implementation of the standard library cannot be found. One can 'resolve' this issue by instead using the stdc++
implementation. One way of doing this is by amending the flag CPPFLAG
prior to your pip install
:
export CPPFLAGS="-stdlib=libc++"
Some people have been able to fix this kind of issues by running
xcode-select --install
It is probably something related to your C++ installation. Here is a hint:
warning: include path for stdlibc++
Here you can find a similar discussion https://github.com/WebAssembly/wabt/issues/716