[Debug] Pyinstaller .exeํŒŒ์ผ ์ž๋™ ๊บผ์ง ํ˜„์ƒ, pyfiglet fonts ํ•ด๊ฒฐ (No module named 'pyfiglet.fonts')
ยท
๐Ÿ Python/Debug
Pyinstaller๋Š” python ์ฝ”๋“œ๋ฅผ exe ํŒŒ์ผ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ด๋‹ค. ์‚ฌ์šฉ๋ฒ•์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. # main.py from pyfiglet import Figlet f = Figlet(font='slant') print(f.renderText('Python')) # pyinstaller -w -F --icon {icon.ico} main.py pyinstaller -F .\main.py -w : ์ฝ˜์†”์ฐฝ ์ถœ๋ ฅํ•˜์ง€ ์•Š์Œ -F : ์‹คํ–‰ํŒŒ์ผ ํ•˜๋‚˜๋งŒ ์ƒ์„ฑ -icon : icon ๋ชจ์–‘ ์œ„ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜๋ฉด No module named 'pyfiglet.fonts' ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด์„œ ์ฝ˜์†”์ฐฝ์ด ์ž๋™์œผ๋กœ ์ข…๋ฃŒ๋œ๋‹ค. ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์•„๋ž˜์ฒ˜๋Ÿผ ์ˆ˜ํ–‰ํ•˜๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค. pyinstaller --add-data " .\{P..
18์ง„์ˆ˜
'๐Ÿ Python/Debug' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก