Trouble with Pymongo installation and dependencies

Best way to debug this is to try it outside your special environment.

  • Create your virtual environment using python -m venv myenv --system-site-packages
  • Activate your virtual environment via source myenv/bin/activate
  • pip install pymongo
  • Try your code again