ubuntu安装jupyter notebook后出现TypeError: 'type' object is not subscriptable错误的解决办法

今天尝试安装jupyter notebook和pyecharts时经常出现错误,上网查资料找了**小时尝试各种命令

然后试着尝试下面的方法,成功的解决了问题。

记录一下解决的过程给各位参考,不代表一定解决问题。

错误一:TypeError: ‘type’ object is not subscriptable

如图所示ubuntu安装jupyter notebook后出现TypeError: 'type' object is not subscriptable错误的解决办法
解决办法:
终端输入

pip3 install tornado==4.4.3

错误二:Command “python setup.py egg_info” failed with error code 1

安装pyecharts时出现的错误
ubuntu安装jupyter notebook后出现TypeError: 'type' object is not subscriptable错误的解决办法
解决的方法:
进入超级管理员获得权限(Windows系统用户可以忽略)

sudo su

然后在终端输入

pip install setuptools==33.1.1