wangr@wangr-9527:~/git_repo/caffe-src/build$ python
Python 2.7.17 (default, Mar 182022, 13:21:42)[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license"formore information.
>>>import lmdb
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
ImportError: No module named lmdb
>>> quit()
wangr@wangr-9527:~/git_repo/caffe-src/build$ python3
Python 3.6.8 (default, Mar 212022, 09:03:22)[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license"formore information.
>>>import lmdb
>>> 成了!
python import:ImportError: No module named lmdb 解决办法
哎 如下~~~注意python版本wangr@wangr-9527:~/git_repo/caffe-src/build$ pythonPython 2.7.17 (default, Mar 18 2022, 13:21:42) [GCC 7.5.0] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import lmdbTraceback (most rece