pyinstaller creating EXE RuntimeError: maximum recursion depth exceeded while calling a Python object

前端 未结 9 1054
栀梦
栀梦 2020-11-29 18:51

I am running WinPython 3.4.4.3 with pyinstaller 3.2 (obtained via pip install pyinstaller).

Now I\'ve got some really simple Qt4 code that I want to convert to EXE a

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 19:38

    I was facing the same issue. I tried most of the things suggested here. But, I could not solve the issue on my laptop. What worked for me is summarized below:

    1. Open Anaconda prompt.
    2. Activate your environment using conda activate my_env.
    3. Navigate to your project folder from the Anaconda command prompt using cd your_folder_directory.
    4. Run pyinstaller --onefile my_python_file.py

    This should not create any recursion error. This will create a dist folder in your project directory. Your executable will present in this folder.

提交回复
热议问题