--Install MongoDB (NoSQL). Follow the MongoDB Community URL Install MongoDB Community Edition on Ubuntu.
--Run from Python pymongo Running in Jupyter Notebook under Anaconda environment
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
If you get an error here, install gnupg. And that.
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
default remarks Data directory / var / lib / mongodb Log directory / var / log / mongodb Config file /etc/mongod.conf
ps --no-headers -o comm 1
>systemd results in my case
sudo systemctl start mongod
sudo cat /var/log/mongodb/mongod.log
sudo systemctl status mongod
Open terminal on Anaconda
conda install pymongo
#pip install is mentioned in the documentation, but mongo in conda-3.11.Installed 0
Recommended Posts