Command to install pymongo
python -m pip install pymongo
Check pymongo version
Example
developer@DESKTOP-GH08T7S MINGW64 ~
$ python -m pip install pymongo
Collecting pymongo
Downloading pymongo-3.12.0-cp39-cp39-win_amd64.whl (397 kB)
Installing collected packages: pymongo
Successfully installed pymongo-3.12.0
developer@DESKTOP-GH08T7S MINGW64 ~
$ pip list | grep pymongo
pymongo 3.12.0
developer@DESKTOP-GH08T7S MINGW64 ~
$
Check pymongo version through python code
import pymongo
print("pymongo version :",pymongo.__version__)
output:
PS D:\python\mongodb> & C:/Users/developer/AppData/Local/Programs/Python/Python39/python.exe d:/python/mongodb/dev/main.py
pymongo version : 3.12.0
PS D:\python\mongodb>