Issue
I wanted to use lmdb package in python2.7 on my OSX.
I used pip2 install lmdb
to install it. And if I install it multiple times, it will show Requirement already satisfied: lmdb in /usr/local/lib/python2.7/site-packages (0.94)
.
But then when I open python2.7 in terminal and try to import lmdb
, an error came out: ImportError: No module named lmdb
.
Why can't I import the package when it's already in the site-packages directory?
Thanks in advance!
Solution
This is my post and I think we have the same issue, Trouble importing module in Python 2.7
Try this out:
If you are using Mac, then open application -> Python 2.7 -> run the two command documents, and then open the IDLE. Then you open the file and run, it might work, although it is counterintuitive.
Answered By - son520804
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.