Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 如何用pyintaller解决递归错误?_Python 3.x_Pandas_Pyinstaller - Fatal编程技术网

Python 3.x 如何用pyintaller解决递归错误?

Python 3.x 如何用pyintaller解决递归错误?,python-3.x,pandas,pyinstaller,Python 3.x,Pandas,Pyinstaller,我已经创建了关于编辑csv文件的代码(a.py),只使用了一些for循环和while循环、pandas loc函数等。 但是这些代码应该加载一个csv文件才能运行 当我尝试使用pyintaller将此a.py打包为exe时, 它说: 对于字段,iter_字段中的值(节点): 递归错误:超过最大递归深度 我使用的是Windows10,python:3.6 pyinstaller:3.4.dev0+7817d3fac 使用anaconda提示符并输入:pyinstaller'path'/a.py-F

我已经创建了关于编辑csv文件的代码(a.py),只使用了一些for循环和while循环、pandas loc函数等。 但是这些代码应该加载一个csv文件才能运行

当我尝试使用
pyintaller
将此a.py打包为exe时, 它说:

对于字段,iter_字段中的值(节点): 递归错误:超过最大递归深度

我使用的是Windows10,python:3.6 pyinstaller:3.4.dev0+7817d3fac 使用anaconda提示符并输入:
pyinstaller'path'/a.py-F.

是否因为未引用csv文件?

请考虑创建.spec文件并设置更高的递归限制

通过运行以下命令创建等级库文件:

pyi-makespec -F a.py
然后编辑.spec文件,通过在顶部添加以下内容来设置递归限制:

# -*- mode: python -*-
import sys
sys.setrecursionlimit(9000)
最后,通过将spec文件传递给pyinstaller来构建EXE:

pyinstaller a.spec

通过安装PyQt5,我成功地完成了该过程。我发现PyQt5存在于“pyqt”列表中,但尚未安装Acultly PyQt5。所以我安装了pyqt5并成功了

在我将规范文件recursionlimit修改为20000后,出现了另一个错误:异常:找不到已检查的现有PyQt5插件目录路径:C:/qt5b/qt_1524647842210/_h_env/Library/pluginsPyQt5 with PyInstaller是一个完全不同的问题。在spec文件中,您需要添加“pathex=['env\\Lib\\site packages\\PyQt5\\bin'”以及“hiddenimports=['PyQt5.sip']”。我应该简单地更改变量panthex,还是添加另一个变量?在“env\\”之前,我应该添加驱动程序d:还是类似的东西?