Skip to content

Instantly share code, notes, and snippets.

@Curookie
Last active December 7, 2021 12:34
Show Gist options
  • Save Curookie/ed7a24e081d7af7fd808f0ad992f39e7 to your computer and use it in GitHub Desktop.
Save Curookie/ed7a24e081d7af7fd808f0ad992f39e7 to your computer and use it in GitHub Desktop.
파이썬 모듈 명령어 실행 안될 때

분명히 pip freeze 했을때 모듈이 설치되었는데 실행이 안된다면
python -m PyInstaller myscript.py 이런식으로 실행해봐라
python -m 모듈명 ~~
한참 고생했다.

pyQt - GUI 모듈

exe 파일 만들기 pyinstaller.exe --onefile --windowed --icon=app.ico app.py
pyinstaller --onefile --windowed --icon=icon.ico changeName.py
python -m PyInstaller --onefile --windowed --icon=.\icon.ico .\changeName.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment