简体   繁体   English

安装cx_Freeze

[英]Install of cx_Freeze

Hi I try to install cx_Freeze on my linux but I can't install it. 嗨,我尝试在Linux上安装cx_Freeze ,但无法安装。 I want to install it to convert my python app (.py) in an executable app. 我想安装它以在可执行应用程序中转换我的python应用程序(.py)。

I download the sources from this website : https://sourceforge.net/projects/cx-freeze/?source=typ_redirect and extract it in a folder. 我从以下网站下载了源代码: https : //sourceforge.net/projects/cx-freeze/? source =typ_redirect并将其解压缩到一个文件夹中。

I follow the install instructions by issuing in console python setup.py build and get the following error: 我通过在控制台python setup.py build发布来遵循安装说明,并得到以下错误:

python setup.py build
Traceback (most recent call last):
  File "setup.py", line 138, in <module>
    finder = cx_Freeze.ModuleFinder(bootstrap = True)
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 160, in __init__
    self._AddBaseModules()
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 187, in _AddBaseModules
    self.IncludeModule("traceback")
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 678, in IncludeModule
    namespace = namespace)
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 346, in _ImportModule
    deferredImports, namespace = namespace)
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 436, in _InternalImportModule
    parentModule, namespace)
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 502, in _LoadModule
    self._ScanCode(module.code, module, deferredImports)
  File "/home/calbert/Téléchargements/cx_Freeze-4.3.3/cx_Freeze/finder.py", line 588, in _ScanCode
    arguments.append(co.co_consts[opArg])
IndexError: tuple index out of range

Thank you for your help because I'm not a professionnal of programs installation in linux ;) 感谢您的帮助,因为我不是Linux上的程序安装专家;)

cx_Freeze has been moved from sourceforge, you only find older versions there (which are presumably not compatible with your Python installation). cx_Freeze已从sourceforge移出,您只能在那里找到较旧的版本(可能与您的Python安装不兼容)。 The current source of cx_Freeze can be found here on GitHub . 当前cx_Freeze的源代码可以在GitHub上找到

cx_Freeze can also be installed from PyPI by issuing the command 也可以通过发出以下命令从PyPI安装cx_Freeze

python -m pip install cx_Freeze --upgrade

See the entry page of cx_Freeze for the official information. 有关官方信息,请参见cx_Freeze条目页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM