使用 python 3.9 在 windows 上出现错误 运行 Jupyter Notebook

Error running Jupyter Notebook on windows with python 3.9

尝试 运行 jupyter notebook 时出现以下错误。 这是 python 和 jupyter notebook 的全新安装。

文件 nbjson.py 正在尝试从 base64 导入函数 encodestring()。该功能已 deprecated since Python 3.1 (2009) 并在 Python 3.9 中删除。 Python 3 函数的名称是 encodebytes().

除非您愿意修复第 3 方模块中的遗留代码(我会毫不犹豫地推荐),否则您的选择是 (1) 向 nbjson 维护者报告问题或 (2) 安装Python 3.8 和 Python 3.9 对于这个项目。