我试图将Python2.7脚本移植到Python3.6+,并遇到了谷歌搜索无法解决的障碍。问题是,尝试一下:除了:下面的调用在执行了一些初步的移植建议后似乎不起作用。Python2.7代码:(已工作)logOutCfg = ConfigParser.ConfigParser()
if (os.path.isfile:except ConfigParser.ParsingError a
这个应用程序提供了自己的site-packages目录,其中包含一个backports包和一个configparser包。File "<app_dir>/python-site/lib/python2.7/site-packages/configparser.py", line 11, in <module>from backports.configparser import (
ImportError:
在全新安装Python2.7.12之后,我快速执行了ImgurPython的pip安装,然后将示例脚本的一个小文件夹拖到我的桌面上进行测试。16, in authenticate File "J:\Python27\lib\ConfigParser.py", line 607, in get
raise NoSectionError(secti