MongoEngine - Installation
To use MongoEngine, you need to have already installed MongoDB and MongoDB server should be running as described earlier.
Easiest way to install MongoEngine is by using PIP installer.
pip3 install mongoengine Collecting mongoengine Downloading mongoengine-0.29.1-py3-none-any.whl.metadata (6.7 kB) Collecting pymongo<5.0,>=3.4 (from mongoengine) Downloading pymongo-4.16.0-cp314-cp314-win_amd64.whl.metadata (10.0 kB) Collecting dnspython<3.0.0,>=2.6.1 (from pymongo<5.0,>=3.4->mongoengine) Downloading dnspython-2.8.0-py3-none-any.whl.metadata (5.7 kB) Downloading mongoengine-0.29.1-py3-none-any.whl (112 kB) Downloading pymongo-4.16.0-cp314-cp314-win_amd64.whl (1.0 MB) ââââââââââââââââââââââââââââââââââââââââ 1.0/1.0 MB 2.8 MB/s 0:00:00 Downloading dnspython-2.8.0-py3-none-any.whl (331 kB) Installing collected packages: dnspython, pymongo, mongoengine Successfully installed dnspython-2.8.0 mongoengine-0.29.1 pymongo-4.16.0
If your Python installation does not have Setuptools installed, you will have to download MongoEngine from https://github.com/MongoEngine/mongoengine and run the following command −
python setup.py install
MongoEngine has the following dependencies −
pymongo>=3.4
dnspython>=3.6.1
To verify the correct installation, run import command and check version as follows −
>>> import mongoengine >>> mongoengine.__version__ '0.29.1'
Advertisements