So i learning flask web dev with mongodb. I am getting an error on the following code,
import pymongo
I am using virtualenv and the following are configured on it, obtained via pip3 freeze
,
Flask==1.0.2
Flask-MongoAlchemy==0.7.2
itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.1.0
MongoAlchemy==0.19
pymongo==2.8.1
Werkzeug==0.14.1
I am getting the error unable to import 'pymongo'
via pylint on Visual studio code.
FYI i was getting a similar error when using MongoAlchemy. I thought i'd switch and give it a go with pymongo.
from flask.ext.mongoalchemy import MongoAlchemy
I have run python3 -m pip install pymongo
but as you may correctly guess i am getting Requirement already satisfied: pymongo in ./venv/lib/python3.7/site-packages (2.8.1)
How could i solve this ? Thank you.