๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ


๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ

(223)
[Python] pip ์„ค์น˜, ์—…๊ทธ๋ ˆ์ด๋“œ (Windows) pip ๋ฒ„์ „ ํ™•์ธ pip --version pip -V pip ์—…๊ทธ๋ ˆ์ด๋“œ python -m pip install --upgrade pip python -m ์—์„œ -m ์˜ ๋œป -m mod : run library module as a script (terminates option list) ๊ฒฝ๋กœ ์ถœ๋ ฅ python -m site Site Packages๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋Š” ๊ฒฝ๋กœ๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๋ฐฉ๋ฒ• python -m site --user-site pip๋กœ ์„ค์น˜ ๋ฐฉ๋ฒ• pip install flask # ๋ฒ„์ „ ์ง€์ • pip install flask==1.1.1 # ์—…๊ทธ๋ ˆ์ด๋“œ pip install -U flask pip install --upgrade flask pip install --force-reinstall flas..
[Python] pyinstaller / exe ํŒŒ์ผ ์ƒ์„ฑ exe ํŒŒ์ผ ํ•˜๋‚˜๋กœ ์ƒ์„ฑ pyinstaller test.py --onefile https://flytrap.tistory.com/m/23 pyinstaller ์šฉ๋Ÿ‰ ์ค„์ด๋Š” ๋ฐฉ๋ฒ• (230MB->36MB) ํŒŒ์ด์ฌ์„ ์ด์šฉํ•˜์—ฌ ํ† ํ”Œ ์Šคํ”ผํ‚น ์—ฐ์Šต ํ”„๋กœ๊ทธ๋žจ์„ ๋งŒ๋“ค์—ˆ๋Š”๋ฐ, ๋ณ„ ๊ธฐ๋Šฅ์ด ์—†๋Š”๋ฐ ์šฉ๋Ÿ‰์ด 230MB๋‚˜ ๋˜์—ˆ๋‹ค. ํ™•์ธํ•ด๋ณธ ๊ฒฐ๊ณผ ์•„๋‚˜์ฝ˜๋‹ค๋ฅผ ์ด์šฉํ•˜์—ฌ pyinstaller๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ์˜€๊ณ , ์ˆœ์ • ํŒŒ์ด์ฌ flytrap.tistory.com
[Python] PySide6 import sys from PySide6.QtWidgets import QApplication, QWidget app = QApplication(sys.argv) window = QWidget() window.show() app.exec_() ์ฐธ๊ณ  https://martinii.fun/147 [1/?] ๊ฐœ๋ฐœํ™˜๊ฒฝ๊ณผ PySide6 ๋ชจ๋“ˆ ์„ค์น˜ ๋ณธ๋ฌธ์˜ GIF(์›€์งค)๋“ค์€ ํด๋ฆญํ•˜๊ธฐ ์ „์—๋Š” ์ดˆ๋ฐ˜1์ดˆ ์ •๋„๋งŒ ๋ฐ˜๋ณตํ•ด์„œ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค. ๋ณ„๋„๋กœ ํด๋ฆญ์„ ํ•ด์ฃผ์…”์•ผ๋งŒ ๋๊นŒ์ง€ ์žฌ์ƒ์ด ๋˜๋Š” ์  ์œ ์˜ํ•˜์—ฌ ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ๊ฐœ๋ฐœํ™˜๊ฒฝ๊ณผ ๋ชจ๋“ˆ ์„ค์น˜ ๊ฐœ๋ฐœํ™˜๊ฒฝ ์„ค์น˜ martinii.fun
[Python] ๊ฐ€์ƒํ™˜๊ฒฝ venv, pipenv ๋ช…๋ น์–ด ์ •๋ฆฌ venv python -m venv ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„ # ํ™˜๊ฒฝ๋ณ€์ˆ˜ path ์šฐ์„  ์ˆœ์œ„๊ฐ€ ๋†’์€ python ๋ฒ„์ „์œผ๋กœ ์ƒ์„ฑ python -m venv venv # path์™€ ์ƒ๊ด€์—†์ด ์„ค์น˜๋˜์–ด ์žˆ๋Š” ํŒŒ์ด์ฌ ์ค‘ ๋ฒ„์ „ ์ง€์ •ํ•˜์—ฌ ์ƒ์„ฑ py -3.8 -m venv venv # ํŒŒ์ด์ฌ์ด ์„ค์น˜๋œ ๊ฒฝ๋กœ ์ด์šฉํ•ด์„œ ์ƒ์„ฑ D:\Programs\Python\Python310\python -m venv venv ์„ค์น˜๋˜์–ด์žˆ๋Š” ํŒŒ์ด์ฌ ๋ณด๊ธฐ : py -0 ๊ฐ€์ƒํ™˜๊ฒฝ ํ™œ์„ฑํ™” venv\Scripts\activate ๋น„ํ™œ์„ฑํ™” deactivate ํŒจํ‚ค์ง€ ์ด๋ฆ„๊ณผ ๋ฒ„์ „ ์ถœ๋ ฅ pip list pip ์ผ๊ด„ ์„ค์น˜ pip install -r requirements.txt # ์‚ญ์ œ pip uninstall -r requirements.txt ํŒจํ‚ค์ง€ ๋ชฉ๋ก๊ณผ ๋ฒ„์ „ ..
[Node.js] Puppeteer Puppeteer sets an initial page size to 800×600px, which defines the screenshot size. The page size can be customized with Page.setViewport(). const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://news.ycombinator.com', { waitUntil: 'networkidle2', }); await page.pdf({path: 'hn.pdf', format: ..
[Python] Pillow ์ด๋ฏธ์ง€ ์‚ฌ์ด์ฆˆ ํ™•์ธ https://note.nkmk.me/en/python-opencv-pillow-image-size/ Get image size (width, height) with Python, OpenCV, Pillow (PIL) | note.nkmk.me This article describes how to get the image size (width, height) in Python with OpenCV and Pillow (PIL).The image size can be obtained as a tuple with the attribute shape of ndarray in OpenCV and the attribute size of PIL.Image in Pillow (PIL). Note that t note..
[Python] PDF ๊ด€๋ จ ํŒจํ‚ค์ง€ ์ •๋ฆฌ PDFRW https://github.com/pmaupin/pdfrw GitHub - pmaupin/pdfrw: pdfrw is a pure Python library that reads and writes PDFs pdfrw is a pure Python library that reads and writes PDFs - GitHub - pmaupin/pdfrw: pdfrw is a pure Python library that reads and writes PDFs github.com https://kimhwon.github.io/pdfrw-automation/ pdfrw๋ฅผ ์‚ฌ์šฉํ•œ PDF ์—…๋ฌด ์ž๋™ํ™” PDF ํผ์„ ์ฑ„์šฐ๋Š” ์—…๋ฌด๋ฅผ ๋ฐ›์•˜์Šต๋‹ˆ๋‹ค. ๋Œ€๋žต 600 rows ์ฏค ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ๋ถ„๋ฅ˜ํ•ด์„œ PDF์— ์ฑ„์›Œ ๋„ฃ..
[Discord.py] Bookmarks app_commands https://gihyeon.tistory.com/1 ๋””์Šค์ฝ”๋“œ ๋ด‡ [discord.py 2.0] ๊ธฐ๋ณธ ํŒŒ์ด์ฌ ๋ฒ„์ „ 3.8 ๋จผ์ € discord.py ์ตœ์‹  ๋ฒ„์ „์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. pip install -U git+https://github.com/Rapptz/discord.py ์„ค์น˜๊ฐ€ ๋๋‚˜์…จ์œผ๋ฉด ๋ด‡ ์‹คํ–‰ํŒŒ์ผ์„ ์ž‘์„ฑํ•ด ์ค๋‹ˆ๋‹ค. from discord import Intents from discor.. gihyeon.tistory.com select menu ์˜ต์…˜์ด .. 19๊ฐœ ๊นŒ์ง€๋งŒ ๋˜๋‚˜?ใ…  https://www.reddit.com/r/Discordjs/comments/sf00wb/options_limit_in_select_menu/ Options Limit in Select Menu He..