python2版本异常_Python to.exe引发异常:此项目的版本控制需要sdisttarb
我試圖從Python文件構建一個可執(zhí)行文件。我能糾正大多數(shù)錯誤,但現(xiàn)在我被這一個卡住了,我不知道如何改正它。我的程序與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。在
總結
以上是生活随笔為你收集整理的python2版本异常_Python to.exe引发异常:此项目的版本控制需要sdisttarb的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: js距离单位换算_英语中常用的度量衡等单
- 下一篇: linux shell 博客,【博客侠】