相关疑难解决方法(0)

python setup.py py2exe语法无效(asyncsupport.py,第22行)

这个命令在我的个人计算机上工作正常但在我的工作PC上一直给我这个错误.会发生什么事?我可以直接在Powershell中运行Char_Limits.py脚本而不会出现问题.错误:编译'C:\ ProgramData\Anaconda2\lib\site-packages\jinja2\asyncsupport.py'失败语法错误:语法无效(asyncsupport.py,第22行)

我的setup.py文件如下所示:

from distutils.core import setup
import py2exe

setup (console=['Char_Limits.py'])
Run Code Online (Sandbox Code Playgroud)

我的文件看起来像:

import xlwings as xw
from win32com.client import constants as c
import win32api

""" 
Important Notes: Header row has to be the first row. No columns without a header row. If you need/want a blank column, just place a random placeholder
header value in the first row.
Product_Article_Number column is used to determine the number of rows. It must be populated for every row.
"""

#functions, hooray!
def setRange(columnDict, …
Run Code Online (Sandbox Code Playgroud)

python py2exe

5
推荐指数
1
解决办法
6205
查看次数

标签 统计

py2exe ×1

python ×1