title: Could not run jupyter on Mac OS (gives pysqlite2 errror)
body: <p>I have installed anaconda in mac os sierra. Simple python scripts run fine. However, when I try to run jupyter-notebook it fails.</p>
  
  <p>The error message is following:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/poudel/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in &lt;module&gt;
      import sqlite3
    File "/Users/poudel/anaconda3/lib/python3.6/sqlite3/__init__.py", line 23, in &lt;module&gt;
      from sqlite3.dbapi2 import *
    File "/Users/poudel/anaconda3/lib/python3.6/sqlite3/dbapi2.py", line 27, in &lt;module&gt;
      from _sqlite3 import *
  ImportError: dlopen(/Users/poudel/anaconda3/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-darwin.so, 2): Symbol not found: _sqlite3_enable_load_extension
    Referenced from: /Users/poudel/anaconda3/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-darwin.so
    Expected in: /usr/lib/libsqlite3.dylib
   in /Users/poudel/anaconda3/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-darwin.so
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Users/poudel/anaconda3/bin/jupyter-notebook", line 7, in &lt;module&gt;
      from notebook.notebookapp import main
    File "/Users/poudel/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 79, in &lt;module&gt;
      from .services.sessions.sessionmanager import SessionManager
    File "/Users/poudel/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in &lt;module&gt;
      from pysqlite2 import dbapi2 as sqlite3
  ModuleNotFoundError: No module named 'pysqlite2'
  </code></pre>
  
  <p>I checked the dylib file, but it is there. What's wrong here?</p>
  
  <pre><code>Bhishan:ls /usr/lib/libsqlite3.dylib 
  /usr/lib/libsqlite3.dylib*
  </code></pre>
  
  <p>Similar problems:  </p>
  
  <p><a href="https://stackoverflow.com/questions/1210664/no-module-named-sqlite3">No module named _sqlite3</a></p>
  
  <p>But they did not solve my problem.</p>