Anaconda3 (64-bit) 下用spyder運行pyecharts的示例代碼報錯,
提示:ImportError: cannot import name 'Bar'
但是在IPython下運行就正常,不知何故

示例代碼如下:
from pyecharts import Bar
x =Bar("我的第一個圖表", "這里是副標題")
x.add("服裝", ["襯衫", "羊毛衫", "雪紡衫", "褲子", "高跟鞋", "襪子"], [5, 20, 36, 10, 75, 90])
x.add("家居", ["馬桶", "床墊", "柜子", "椅子", "沙發", "櫥柜"], [20, 17, 8, 66, 70, 150])
#x.show_config()
x.render()
uj5u.com熱心網友回復:
沒有人知道么
uj5u.com熱心網友回復:
IPython下運行就正常,spyder運行報錯cannot import name 'Bar',應該是你吧檔案命名為了pyecharts!轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/123837.html
