I got error when using pip install leveldb

后端 未结 2 1472
-上瘾入骨i
-上瘾入骨i 2021-01-15 17:30

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:34

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

提交回复
热议问题