由于与python解析器模块发生名称冲突,因此无法导入pysub-parser解析器模块

时间:2019-11-29 09:59:38

标签: python name-conflict

我刚刚安装了pysub-parser软件包,但问题是,我不能导入主parser模块,因为该名称与Python标准parser模块冲突...

In [1]: from parser import parse                                                                                                                                                                                                                                                   
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-8acf64677b01> in <module>
----> 1 from parser import parse

ImportError: cannot import name 'parse' from 'parser' (/home/SERILOCAL/n.perto/.anaconda3/lib/python3.7/lib-dynload/parser.cpython-37m-x86_64-linux-gnu.so)

0 个答案:

没有答案