ImportError: No module named 'version'

前端 未结 1 1673
情书的邮戳
情书的邮戳 2020-12-21 05:02

I pip the \"opencc\"

when i shell the code below

import opencc

it shows

Traceback (most recent call last):
File \"&         


        
相关标签:
1条回答
  • 2020-12-21 05:10

    The opencc module is not compatible with Python 3. It can currently only be used on Python 2.

    Specifically, the version module is part of the opencc package, but in Python 3 you'd need to use absolute imports, from opencc.version import __version__ or from .version import __version__. There will be other issues with the code too.

    0 讨论(0)
提交回复
热议问题