我正在尝试在程序中使用熊猫数据读取器
body {
width:600px;
height:400px;
}
但是当我运行它时会出现错误
from pandas_datareader import data
from pandas_datareader.utils import RemoteDataError
我使用pip来安装C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\pandas_datareader\compat\__init__.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import assert_frame_equal
Traceback (most recent call last):
File ".\tradingBOT.py", line 2, in <module>
from pandas_datareader.utils import RemoteDataError
ModuleNotFoundError: No module named 'pandas_datareader.utils'
,并且可以正常工作
答案 0 :(得分:0)
而不是输入:
from pandas_datareader.utils import RemoteDataError
我试过了:
from pandas_datareader._utils import RemoteDataError
我不知道是否有区别,但似乎一切正常!