1. $ pip install lmdb 2. Collecting lmdb 3. Downloading lmdb-0.93-py3-none-any.whl 4. Collecting cffi>=0.8 (from lmdb) 5. Using cached cffi-1.10.0-cp36-cp36m-manylinux1_x86_64.whl 6. Collecting pycparser (from cffi>=0.8->lmdb) 7. Downloading pycparser-2.18.tar.gz (245kB) 8. 100% |████████████████████████████████| 256kB 471kB/s 9. Installing collected packages: pycparser, cffi, lmdb 10. Running setup.py install for pycparser ... done 11. Successfully installed cffi-1.10.0 lmdb-0.93 pycparser-2.18 12. $ python 13. Python 3.6.1+ (heads/3.6:af839fe2fe, Mar 22 2017, 08:21:52) 14. [GCC 6.3.0 20170316] on linux 15. Type "help", "copyright", "credits" or "license" for more information. 16. >>> import lmdb 17. gcc: error: /FIPython.h: File o directory non esistente 18. Traceback (most recent call last): 19. File "/tmp/e/lib/python3.6/site-packages/lmdb/__init__.py", line 42, in <module> 20. from lmdb.cpython import * 21. ModuleNotFoundError: No module named 'lmdb.cpython' 22. 23. 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给配好的
AIEarth是一个由众多领域内专家博主共同打造的学术平台,旨在建设一个拥抱智慧未来的学术殿堂!【平台地址:https://devpress.csdn.net/aiearth】 很高兴认识你!加入我们共同进步!