I have installed Windows Subsystem for Linux 2 on my windows computer, and using Ubuntu, have been accessing Jupyter Notebook. This has now stopped working. When I open Ubuntu and type in jupyter notebook
it used to give me a link which I copied into Microsoft Edge. I am now getting the following error message.
kathmcp02@DESKTOP-Q2SS990:~$ jupyter notebook
Traceback (most recent call last):
File "/home/kathmcp02/.local/bin/jupyter-notebook", line 5, in <module>
from notebook.notebookapp import main
File "/home/kathmcp02/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 44, in <module>
from jinja2 import Environment, FileSystemLoader
ImportError: cannot import name 'Environment' from 'jinja2' (/home/kathmcp02/.local/lib/python3.8/site-packages/jinja2/__init__.py)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
File "/usr/lib/python3/dist-packages/requests_unixsocket/__init__.py", line 4, in <module>
from .adapters import UnixAdapter
File "/usr/lib/python3/dist-packages/requests_unixsocket/adapters.py", line 3, in <module>
from requests.adapters import HTTPAdapter
ImportError: cannot import name 'HTTPAdapter' from 'requests.adapters' (/home/kathmcp02/.local/lib/python3.8/site-packages/requests/adapters.py)
Original exception was:
Traceback (most recent call last):
File "/home/kathmcp02/.local/bin/jupyter-notebook", line 5, in <module>
from notebook.notebookapp import main
File "/home/kathmcp02/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 44, in <module>
from jinja2 import Environment, FileSystemLoader
ImportError: cannot import name 'Environment' from 'jinja2' (/home/kathmcp02/.local/lib/python3.8/site-packages/jinja2/__init__.py)
I am not very computer savvy, so any help would be much appreciated. Thank you!