Home > Mobile >  Error running Jupyter Notebook on windows with python 3.9
Error running Jupyter Notebook on windows with python 3.9

Time:11-02

I get the following error when trying to run jupyter notebook. It is a fresh install of python and jupyter notebook.

enter image description here

CodePudding user response:

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.

  • Related