99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2022-05-19 閱讀量: 2054
關(guān)于python pyecharts 報(bào)錯(cuò):cannot import name 'options' from 'pyecharts'

`ZP`}(K@8V_2OCG8(~55W62.png

pyechart 執(zhí)行 調(diào)包代碼: from pyecharts import options as opts 報(bào)錯(cuò): cannot import name 'options' from 'pyecharts'

解決方法:

1,有可能是安裝的pyecharts版本過低,在jupyter里查詢一下pyecharts這個(gè)包的版本

import pyecharts
pyecharts.__version__

1.1 果然版本低 返回結(jié)果為0.5.1

2, 查到版本號(hào)低,所以需要重裝新版本,在命令窗口執(zhí)行: pip install pyecharts

2.1 如果需要重裝指定版本的包,可以這樣寫: pip install pyecharts ==1.9.1

3, 重裝包后,要把jupyter notebook 重啟一下,然后重新執(zhí)行調(diào)包的代碼,

3,1 重啟后執(zhí)行 from pyecharts import options as opts 執(zhí)行成功


備注: 如果要卸載包這樣寫命令: pip uninstall pyechatrs

卸載指定版本的包,這樣寫: pip uninstall pyecharts ==0.5.1



21.8193
0
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無數(shù)據(jù)
推薦帖子