How to know which version of PyMongo is running on my project
This should work
python -c 'import pymongo; print (pymongo.__version__)'
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'
import pymongo
print("Mongo version",pymongo.__version__)
Works perfectly in python3