我试图从Python文件构建一个可执行文件。我能纠正大多数错误,但现在我被这一个卡住了,我不知道如何改正它。我的程序与jiraapi交互。在
我使用Cx_Freeze来构建具有以下设置的.exe。py文件:import sys
import setuptools
from cx_Freeze import setup, Executable
build_exe_options = {"includes": ["appdirs", "packaging.specifiers",
"packaging.requirements", "setuptools.msvc", "jira"]}
setup(name="Quick", version="1.0", executables=[Executable("main.py")],
options={"build_exe": build_exe_options},
install_requires=['selenium', 'jira', 'cx_Freeze'])
我在命令提示符下输入:python setup.py build,结果得到一个名为build的文件夹。它包含一个主.exe程序。当我从命令提示符启动它时,我得到以下错误:Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name jira was given, but was not able to be found.
我尝试过用pip升级Jira、setuptools和disutils,但没有改变任何东西。在
我使用的是python3.6。在