暂时结束了数学建模作业(呜呜,又开始新的搬砖之旅了),今天开始做可视化工作了,需要用到pyechart库。因为之前没有安装过,所以出现了如下报错
为了解决上述报错,我使用pip工具安装
pip install pyecharts
但是出现了报错
Could not find a version that satisfies the requirement pyechart(from versions: ) No matching distribution found for pyechart
开始了配环境的心酸历程,
- 首先通过百度等方法,有帖子说是因为网络问题,需要更改pip源为国内镜像。放出大神帖
- 然而即使更改了pip源,还是会报错,一样的错误。
Could not find a version that satisfies the requirement pyechart(from versions: ) No matching distribution found for pyechart - 因为长期使用jupyter notebook,我抱着试试的心态打开了terminal 界面,用了同样的命令
pip install pyecharts
结果,安装成功了(真难以置信)。
PS:最后一秒找到原因了,库名写错了,pyecharts后面落了一个字母s
粗心的栗子溜了溜了,继续搬砖去了。