플그래밍/파이써언

[파이썬] Pyinstaller - input()이 작동 안 할 경우!

훗티v 2022. 12. 14. 20:21
728x90
반응형

[파이썬] Pyinstaller - input()이 작동 안 할 경우!

 

에러

Pyinstaller로 py > exe 변환 시 input()이 작동하지 않는 에러입니다.

 

해결

exe파일로 변환 시 --console을 추가해주면 해결됩니다.

 

예제

터미널 > pyinstaller --onefile -w --console my_python_file.py

 

 

 

 

 

 

반응형