It looks like you must be running locally, since there is no /usr/local/lib/python3.7 in the notebook environment. If you are running locally, you are probably using different versions of TF and lots of other things. There is no guarantee that the notebook code will run with some random version of the support packages it depends on. We do not have “official” instructions for how to do this, but here’s a thread from a fellow student with lots of useful instructions. But as you’ll see from a quick scan of that thread, these are deep waters. Be warned: There Be Dragons! 