我安装了熊猫,numpy,大叶草。
导入大叶草时,我遇到了错误。
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import folium
File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\folium\__init__.py", line 5, in <module>
from branca.colormap import (ColorMap, LinearColormap, StepColormap)
File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\branca\__init__.py", line 5, in <module>
import branca.colormap as colormap
File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\branca\colormap.py", line 14, in <module>
from branca.element import ENV, Figure, JavascriptLink, MacroElement
File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\branca\element.py", line 17, in <module>
from .utilities import _camelify, _parse_size, none_min, none_max
File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\branca\utilities.py", line 23, in <module>
import pandas as pd
File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\__init__.py", line 50, in <module>
plot_params = pandas.plotting._style._Options(deprecated=True)
AttributeError: module 'pandas' has no attribute 'plotting'
我尝试在线搜索并得到一个答案,那就是升级大熊猫可以解决此问题,但是当我尝试升级大熊猫时,我收到消息“要求已经满足,正在跳过升级:”
答案 0 :(得分:0)
我尝试升级大熊猫,这是从stackoverflow上的链接之一得到的建议。
最后,我重新启动了系统,这次可以正常运行了。