I'm developing a python project, in the requirements file I have three different types of PyMongo
Flask-PyMongo==0.3.1
pymongo==2.7
flask-mongoengine==0.7.1
How can I define which version I'm using?
If you got pip
installed, you can try this in terminal:
$ pip freeze | grep pymongo
pymongo==3.0.2
You can learn like this,
>>> import pymongo
>>> pymongo.version
'3.0.3'
This should work
python -c 'import pymongo; print (pymongo.__version__)'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With