I got error when using pip install leveldb

后端 未结 2 1730
忘了有多久
忘了有多久 2021-01-15 17:06

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

2条回答
  •  感动是毒
    2021-01-15 17:39

    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++"
    

提交回复
热议问题