I want to learn how to use Jupyter Notebook. So far, I have managed to download and install it (using pip), but I\'m having trouble opening it.
I am opening it by ty
I also encountered this problem. The root cause in my case was that I already had Jinja2 installed with root permissions (having used sudo pip install
before I knew better).
My solution was to uninstall Jinja2 with sudo pip uninstall
(which was required because it was installed with root permissions), and re-run pip install jupyter
to reinstall it with regular user permissions.
$ sudo pip uninstall Jinja2
$ pip install jupyter
While using sudo
to install works here, it makes the problem worse in the longer term because all its packages are installed with root permissions, leading to further problems like this in future with other packages. It's kind of like kicking that can down the road.
Many won't care of course, as long as it works. But for those that do I thought I'd mention.
There's no way to know for sure what the offending package is, but it's likely to be one of those in the stack trace. I noticed Jinja2 as one I vaguely remembered from my early days in Python so I started there and it worked.