![cover](https://img-blog.csdnimg.cn/9c300f1d436d4784bd356f7f61b59d6b.png)
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module‘s documentat
pycharm出现报错:DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative usesimport imp, sys, os
·
Pycharm运行出现报错
E:\anaconda\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp, sys, os
看了网上很多解决方法,试过几个都没用,最后通过打开文件所在地址:(E:\anaconda\lib\site-packages\win32\lib\pywintypes.py:2)找到对应文件,pywintypes.py,修改代码第二行 import imp,sys,os 将其中的imp修改为impo,再次运行程序没有报错imp修改为impo
更多推荐
所有评论(0)