<bdo id='4kNYJ'></bdo><ul id='4kNYJ'></ul>
  • <legend id='4kNYJ'><style id='4kNYJ'><dir id='4kNYJ'><q id='4kNYJ'></q></dir></style></legend>

    <small id='4kNYJ'></small><noframes id='4kNYJ'>

  • <i id='4kNYJ'><tr id='4kNYJ'><dt id='4kNYJ'><q id='4kNYJ'><span id='4kNYJ'><b id='4kNYJ'><form id='4kNYJ'><ins id='4kNYJ'></ins><ul id='4kNYJ'></ul><sub id='4kNYJ'></sub></form><legend id='4kNYJ'></legend><bdo id='4kNYJ'><pre id='4kNYJ'><center id='4kNYJ'></center></pre></bdo></b><th id='4kNYJ'></th></span></q></dt></tr></i><div id='4kNYJ'><tfoot id='4kNYJ'></tfoot><dl id='4kNYJ'><fieldset id='4kNYJ'></fieldset></dl></div>

    1. <tfoot id='4kNYJ'></tfoot>

        KeyError: 'TCL_Library' 当我使用 cx_Freeze

        KeyError: #39;TCL_Library#39; when I use cx_Freeze(KeyError: TCL_Library 当我使用 cx_Freeze)

                <tbody id='eezx4'></tbody>

              <small id='eezx4'></small><noframes id='eezx4'>

              • <bdo id='eezx4'></bdo><ul id='eezx4'></ul>

              • <legend id='eezx4'><style id='eezx4'><dir id='eezx4'><q id='eezx4'></q></dir></style></legend>

                <tfoot id='eezx4'></tfoot>

                • <i id='eezx4'><tr id='eezx4'><dt id='eezx4'><q id='eezx4'><span id='eezx4'><b id='eezx4'><form id='eezx4'><ins id='eezx4'></ins><ul id='eezx4'></ul><sub id='eezx4'></sub></form><legend id='eezx4'></legend><bdo id='eezx4'><pre id='eezx4'><center id='eezx4'></center></pre></bdo></b><th id='eezx4'></th></span></q></dt></tr></i><div id='eezx4'><tfoot id='eezx4'></tfoot><dl id='eezx4'><fieldset id='eezx4'></fieldset></dl></div>
                  本文介绍了KeyError: 'TCL_Library' 当我使用 cx_Freeze的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  When I use cx_Freeze I get a keyerror KeyError: 'TCL_Library'while building my pygame program. Why do I get this and how do I fix it?

                  My setup.py is below:

                  from cx_Freeze import setup, Executable
                  
                  setup(
                      name = "Snakes and Ladders",
                      version = "0.9",
                      author = "Adam",
                      author_email = "Omitted",
                      options = {"build_exe": {"packages":["pygame"],
                                           "include_files": ["main.py", "squares.py",
                                           "pictures/Base Dice.png", "pictures/Dice 1.png",
                                           "pictures/Dice 2.png", "pictures/Dice 3.png",
                                           "pictures/Dice 4.png", "pictures/Dice 5.png",
                                           "pictures/Dice 6.png"]}},
                      executables = [Executable("run.py")],
                      )
                  

                  解决方案

                  You can work around this error by setting the environment variables manually:

                  set TCL_LIBRARY=C:Program FilesPython35-32	cl	cl8.6
                  set TK_LIBRARY=C:Program FilesPython35-32	cl	k8.6
                  

                  You can also do that in the setup.py script:

                  os.environ['TCL_LIBRARY'] = r'C:Program FilesPython35-32	cl	cl8.6'
                  os.environ['TK_LIBRARY'] = r'C:Program FilesPython35-32	cl	k8.6'
                  
                  setup([..])
                  


                  But I found that actually running the program doesn't work. On the cx_freeze mailinglist it was mentioned:

                  I have looked into it already and no, it is not just a simple recompile -- or it would have been done already! :-)

                  It is in progress and it looks like it will take a bit of effort. Some of the code in place to handle things like extension modules inside packages is falling over -- and that may be better solved by dropping that code and forcing the package outside the zip file (another pull request that needs to be absorbed). I should have some time next week and the week following to look into this further. So all things working out well I should put out a new version of cx_Freeze before the end of the year.

                  But perhaps you have more luck ... Here's the bug report.

                  这篇关于KeyError: 'TCL_Library' 当我使用 cx_Freeze的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)

                    <legend id='RmYEU'><style id='RmYEU'><dir id='RmYEU'><q id='RmYEU'></q></dir></style></legend>

                      <tbody id='RmYEU'></tbody>

                    <small id='RmYEU'></small><noframes id='RmYEU'>

                      • <bdo id='RmYEU'></bdo><ul id='RmYEU'></ul>
                        <i id='RmYEU'><tr id='RmYEU'><dt id='RmYEU'><q id='RmYEU'><span id='RmYEU'><b id='RmYEU'><form id='RmYEU'><ins id='RmYEU'></ins><ul id='RmYEU'></ul><sub id='RmYEU'></sub></form><legend id='RmYEU'></legend><bdo id='RmYEU'><pre id='RmYEU'><center id='RmYEU'></center></pre></bdo></b><th id='RmYEU'></th></span></q></dt></tr></i><div id='RmYEU'><tfoot id='RmYEU'></tfoot><dl id='RmYEU'><fieldset id='RmYEU'></fieldset></dl></div>
                      • <tfoot id='RmYEU'></tfoot>