我在我的代码中使用熊猫,在熊猫中他们使用 imp 结节。现在我收到以下错误/警告
C:\Users\refaelc\AppData\Local\Temp\collection_id-96deaf03-9b39-46c0-a843-63f6101481c1-5289121858290797008.csv
Step07: Compare the downloaded and the template files
C:\Users\refaelc\AppData\Local\Continuum\Anaconda3\lib\importlib\_bootstrap.py:205: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
C:\Users\refaelc\AppData\Local\Continuum\Anaconda3\lib\site-packages\_pytest\assertion\rewrite.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Item is missing from collections - int
现在我做了一些搜索,发现 imp 模块正在被 importlib 模块取代。我更新了熊猫,但没有用。我似乎不太可能需要更改 Panda 的包代码。
有什么想法/修复吗?