本帖最后由 rororay 于 2020-3-19 13:30 编辑
在Win7系统下使用Python36,通过pip直接安装了Pyglossary 3.2.1,按教程https://github.com/ilius/pyglossary/issues/65,使用cmd调用pyglossary.pyw,出错
教程如下
C:\Python35-32\python.exe c:\path1\pyglossary\pyglossary.pyw --ui=tk
出错信息: Traceback (most recent call last): File "C:\users\……\Python36\share\pyglossary\pyglossary.pyw", line 30, in <module> from pyglossary import core # essential File "C:\users\……\Python36\share\pyglossary\pyglossary.pyw", line 30, in <module> from pyglossary import core # essential ImportError: cannot import name 'core'
分析是import无法调用core.py时出错 其中pyglossary.pyw安装于路径share\pyglossary\ 而调用的core模块安装于路径Python36\Lib\site-packages\pyglossary\core.py
求助大神何解?
|