본문 바로가기
728x90
반응형

pyinstaller3

Tkinter - CustomTkinter, pyinstaller 빌드 후 blue.json 에러 해결 방법 pyinstaller -F --collect-all customtkinter -w --collect-all customtkinter 옵션을 추가한다. 출처: https://stackoverflow.com/questions/75872305/how-to-get-the-correct-path-to-a-json-file-from-the-customtkinter-module How to get the correct path to a json file from the customtkinter module I made my GUI using customtkinter. I used auto-py-to-exe to make it an file. The exe file doesn't open because of an th.. 2023. 8. 13.
파이썬 - pyinstaller 관리자 권한으로 실행 하기 --uac-admin 옵션을 추가하고 빌드를 하면 관리자 권한으로 실행이 가능하다. 예시 pyinstaller -w --uac-admin test.py 출처: https://dev-dream.tistory.com/4 pyinstaller 로 exe 만들 때 관리자 권한으로 실행하기 python 으로 프로그램을 만들면 exe (실행파일) 형태로 배포할 경우가 있다. py2exe 를 주로 썼는데 setup 파일 만드는게 불편했는데 pyinstaller 를 활용하면 쉽게 만들 수 있다. pip3 install pyinstaller 로 pyins dev-dream.tistory.com 2023. 5. 5.
파이썬 - pyinstaller의 RecursionError : maximum recursion depth exceeded 오류 해결 방법 pyinstaller -w --onefile main.py 이런 예시로 main.py를 exe로 변환하는 과정에 RecursionError 오류가 생겼다면 .spec 파일을 아래처럼 수정 pyinstaller로 빌드를 한번 해주면 그 폴더에 main.spec이라는 파일이 하나 생기는데 이걸 연다. 상위 부분에다. (인코딩 바로 아래에) # -*- mode: python ; coding: utf-8 -*- import sys sys.setrecursionlimit(5000) # 혹은 import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5) 두 줄을 새로 추가한다. (sys.setrecursionlimit 함수는 재귀 호출의 제한 설정이라고 한다. 기.. 2023. 3. 8.
728x90
반응형