EXE 파일 만들기
실행파일을 만들 000.py파일이 있는 폴더로 이동한 후에
pyinstaller.exe 000.py  실행합니다.
파일 하나로 만들려면 -F 옵션을 줍니다.
pyinstaller.exe -F 000.py
만약 console창을 숨기고 싶으면 다음과 같은 --noconsole 옵션을 추가하면 됩니다.
pyinstaller.exe -F --noconsole 000.py
실행파일 아이콘 삽입
pyinstaller.exe -F --noconsole --icon=icon\icon.ico ipadd.py

pyinstaller --onefile --icon=icon\icon.ico ipadd.py
icon 이라는 폴더의 icon.ico 파일입니다. 혹시 target.py 과 동일한 경로에 있을경우 --icon 를 -icon 수정하면 됩니다.
어떤 경우 C:\ 경로 가 아닌경우 액세스 오류가 나는 경우가 있습니다. 이럴경우 C 경로로 이동하여 실행 하면 정상 작동 합니다.
...
2019/07/23 12:59 2019/07/23 12:59

Trackback Address :: https://youngsam.net/trackback/2039

Comment on this post!

  1. 김영삼 2019/11/01 20:08      

    pyinstaller --onefile --icon=icon\icon.ico ipadd.py

  2. 김영삼 2019/11/04 12:46      

    텔레그램 봇 만들기

    봇호출: /newbot
    방이름 : 영삼방
    봇이름 : my_0303_bot

  3. 김영삼 2019/11/21 16:24      

    pyinstaller --onefile --icon=icon\icon.ico --hidden-import=pymysql 파일명.py

  4. openkr 2021/01/27 15:40      

    chromedriver 을 포함시킬수 있다.

    pyinstaller --onefile --icon=icon\icon.ico --hidden-import=pymysql --add-binary "chromedriver.exe";"." 파일명.py

  5. openkr 2024/03/14 00:29      

    pyinstaller --onefile --icon=icon\icon.ico --add-data="icon\icon.ico;icon" --noconsole 03.py

[로그인][오픈아이디란?]