本帖最后由 rororay 于 2020-3-19 13:30 编辑 ( _1 y$ j2 _/ A6 H; g
% j' Q2 s6 ^ S0 R! b5 H在Win7系统下使用Python36,通过pip直接安装了Pyglossary 3.2.1,按教程https://github.com/ilius/pyglossary/issues/65,使用cmd调用pyglossary.pyw,出错' p A3 q+ l8 b* U' a8 B* X
教程如下2 a. l5 n& g: b5 t- ?4 h
C:\Python35-32\python.exe c:\path1\pyglossary\pyglossary.pyw --ui=tk
5 f5 X& ?: d) b. B1 P! p1 z% ]
出错信息: 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'
2 u6 f/ Z3 E' Z. D0 |
分析是import无法调用core.py时出错 其中pyglossary.pyw安装于路径share\pyglossary\ 而调用的core模块安装于路径Python36\Lib\site-packages\pyglossary\core.py + g" K- B; U$ w9 H" n5 j. L
求助大神何解?
9 ?8 v- a- w( b3 t& M% j. |" W/ \( a/ q$ m+ k7 n {' q$ _$ {
2 Q; W6 ~9 _# R1 r' t' U& @. E
. D. N1 u- \: s" D
. p M- h6 u+ u$ s0 | |