Skip to content
Advertisement

Why am I not able to install lmdb using pip?

I’m following the turorial found here: https://realpython.com/storing-images-in-python/.

The first few steps in the tutorial work well; however, when I get to the step

JavaScript

I get more than 100 errors, and the installer gives up. I’m wondering how to correct this problem.

My entry of the step shown above looks like this in the Pycharm terminal:

JavaScript

After entering the pip command shown above, I see the following on the screen:

JavaScript

Then I get a dump showing the following steps that were taken:

JavaScript

Next, I get a few warnings then a list of more than 100 errors. The warnings and the first few errors are shown below:

JavaScript

Finally, I get an error at the end a red font. The final error is:

JavaScript

Advertisement

Answer

Since nobody has entered an official answer after 2.5 years, I decided to copy the answer given above in the comments by furas:

It seems there is error in C/C++ code. So you can write to author or you may try to use Anaconda which should have precompiled module LMDB and it doesn’t use C/C++ compiler. You can also check on Unofficial Windows Binaries for Python Extension Packages

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement