ModuleNotFoundError: No module named ‘pyecharts‘报错解决

在jupyter notebook环境下,尝试pip uninstall jupyter-echarts-pypkg和pip install jupyter-echarts-pypkg依旧报错
解决:

pip list#第一步查看当前的安装包是否有pyecharts




pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pyecharts
#第二步使用镜像路径安装pyecharts

在jupyter notebook中安装第三方库,在pip前加上!,参考:
https://blog.csdn.net/mymatin1004/article/details/82698422
一般在cmd中安装,只要加入了环境变量,在notebook中可直接调用。

pip --default-timeout=100 install pyecharts