擅长:python、mysql、java
<p>我在使用<code>pyinstaller</code>打包Kivy的“showcase”演示应用程序时遇到了类似的问题。在</p>
<p>好像是Pygments的虫子。在</p>
<p>在我修补<code>\pygments\lexers\__init__.py</code>之后,错误消失了:</p>
<pre><code> - __init__old.py
+++ __init__.py
@@ -15,6 +15,7 @@
import fnmatch
from os.path import basename
+from pygments.lexers.agile import PythonLexer
from pygments.lexers._mapping import LEXERS
from pygments.modeline import get_filetype_from_buffer
</code></pre>