Ishank Gupta
Ishank Gupta

Reputation: 53

Error running Jupyter Notebook on windows with python 3.9

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

Upvotes: 0

Views: 175

Answers (1)

BoarGules
BoarGules

Reputation: 16942

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.

Upvotes: 1

Related Questions