Pyinstaller로 실행파일을 만들고 실행했을 떄 발생하는 에러
에러
Pyinstaller로 실행파일을 만들고 위와 같이 에러가나는 경우가 있다.
...
ModuleNotFoundError: No module named 'requests'
[42504] Failed to execute script '...' due to unhandled exception!
...해결방법
실행파일을 만들 때, 아래와 같은 문구를 추가해서 강제로 모듈을 추가한다.
pyinstaller -F --hidden-import 'requests' test.py
댓글을 불러오고 있습니다.