Issue
I get the following error when trying to run jupyter notebook. It is a fresh install of python and jupyter notebook.
Solution
The file nbjson.py
is trying to import the function encodestring()
from base64
. That function has been deprecated since Python 3.1 (2009) and was removed in Python 3.9. The Python 3 name for the function is encodebytes()
.
Unless you feel up to remediating legacy code in a 3rd-party module (something I would hesitate to recommend), your options are (1) report the problem to the nbjson
maintainer or (2) install Python 3.8 alongside Python 3.9 for this project.
Answered By - BoarGules
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.