版权声明:本文为博主原创文章,能帮到你很开心(^_^)~,欢迎转载,转载请注明出处~ https://blog.csdn.net/qq_36396104/article/details/83903565
$ pip install lmdb
Collecting lmdb
Downloading lmdb-0.93-py3-none-any.whl
Collecting cffi>=0.8 (from lmdb)
Using cached cffi-1.10.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pycparser (from cffi>=0.8->lmdb)
Downloading pycparser-2.18.tar.gz (245kB)
100% |████████████████████████████████| 256kB 471kB/s
Installing collected packages: pycparser, cffi, lmdb
Running setup.py install for pycparser ... done
Successfully installed cffi-1.10.0 lmdb-0.93 pycparser-2.18
$ python
Python 3.6.1+ (heads/3.6:af839fe2fe, Mar 22 2017, 08:21:52)
[GCC 6.3.0 20170316] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lmdb
gcc: error: /FIPython.h: File o directory non esistente
Traceback (most recent call last):
File "/tmp/e/lib/python3.6/site-packages/lmdb/__init__.py", line 42, in <module>
from lmdb.cpython import *
ModuleNotFoundError: No module named 'lmdb.cpython'
During handling of the above exception, another exception occurred:
这个错误,原作者在github上说:
Grumbe, same issue as in #136... Forgot to look at that before making another release. Fix is simple, will delete the bad egg when I get home
。。。
I deleted that wheel.. has the problem abated?
https://github.com/dw/py-lmdb/issues/165
i.e. "pip install lmdb", "easy_install lmdb", "python -m pip install lmdb", "python -m easy_install lmdb". At least one of these commands should 'just work' :)
https://github.com/dw/py-lmdb/issues/95
作者说他已经修复了,不过我这边在windows 10下直接进行pip install lmdb 还是不行,最后还是用anaconda3:conda install -c conda-forge python-lmdb给配好的