- When you need to import data from .csv file, you can use this command on MacOS :
- mongoimport --type csv --headerline --db mflix --collection movies_initial --host "mflix-shard-00-00.0qanv.mongodb.net:27017,mflix-shard-00-01.0qanv.mongodb.net:27017,mflix-shard-00-02.0qanv.mongodb.net:27017" --authenticationDatabase admin --ssl --username analytics --password analytics-password --file movies_initial.csv
Maybe this url is usable for solving error:
pip install matplotlib conda install -c conda-forge basemap conda install -c conda-forge basemap-data-hires
import os import conda
conda_file_dir = conda.file conda_dir = conda_file_dir.split('lib')[0] proj_lib = os.path.join(os.path.join(conda_dir, 'share'), 'proj') os.environ["PROJ_LIB"] = proj_lib