๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Python/๊ธฐ์ดˆ

[Python] ํŒŒ์ด์ฌ PyCharm Interpreter ์„ ํƒ ๋ฐ ๋ชจ๋“ˆ ์ถ”๊ฐ€ :: ๋งˆ์ด์ž๋ชฝ

by ๐ŸŒปโ™š 2019. 1. 1.

Pycharm Interpreter ์„ ํƒ

 Pycharm์„ ์ด์šฉํ•˜์—ฌ ์„ค์น˜๋œ ์—ฌ๋Ÿฌ ๋ฒ„์ „์˜ ํŒŒ์ด์ฌ์„ ์„ ํƒํ•ด์„œ Interpreter๋กœ ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.
๋งฅ ๊ธฐ์ค€ 
PyCharm - Preferences...





Project - Project Interpreter ์„ ํƒ

Project Interpreter ์„ค๋ ‰ํŠธ๋ฐ•์Šค๋ฅผ ์ด์šฉํ•ด์„œ ์„ค์น˜๋œ ํŒŒ์ด์ฌ์„ ์„ ํƒํ•ด์ค€๋‹ค.

์„ ํƒํ•˜๋ฉด ์„ค์น˜๋˜์–ด ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ ๋ชจ๋“ˆ์ด ๋‚˜์—ด๋œ๋‹ค.






PyCharm ๋ชจ๋“ˆ ์„ค์น˜

๋ชจ๋“ˆ ์„ค์น˜๋ฅผ ์œ„ํ•ด Interpreter์„ ํƒ ํ›„ ์ขŒ์ธก ํ•˜๋‹จ์— '+'ํ‘œ์‹œ ๋˜์–ด์žˆ๋Š” ๋ฒ„ํŠผ์„ ํด๋ฆญํ•œ๋‹ค.
๊ฒ€์ƒ‰์„ ํ†ตํ•ด ์›ํ•˜๋Š” ๋ชจ๋“ˆ์„ ์„ ํƒํ•ด์ฃผ๊ณ  ์ขŒ์ธก ํ•˜๋‹จ Install Package๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์„ค์น˜ํ•ด์ค€๋‹ค.





import ์ž๋™์™„์„ฑ์— installํ•œ ๋ชจ๋“ˆ์ด ๋œจ๋Š”๊ฒƒ์„ ํ™•์ธํ•˜์—ฌ ์ •์ƒ์ ์œผ๋กœ ์„ค์น˜๊ฐ€ ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.


๋Œ“๊ธ€