๋”ฅ๋Ÿฌ๋‹/Today I learned :

๋”ฅ๋Ÿฌ๋‹ ์‹คํ–‰ ์ค€๋น„ (์ž‘์—…ํ™˜๊ฒฝ ๋งŒ๋“ค๊ธฐ)

์ฃผ์˜ ๐Ÿฑ 2021. 3. 10. 13:13
728x90
๋ฐ˜์‘ํ˜•

jupyter notebook ์„ ์ด์šฉํ•œ ์‹ค์Šต ์ค€๋น„

 

์•„๋‚˜์ฝ˜๋‹ค๋ฅผ ์„ค์น˜ํ•œ ํ›„ , ์•„๋‚˜์ฝ˜๋‹ค์— ํฌํ•จ๋˜์ง€ ์•Š์€ Tenserflow, keras ํŒจํ‚ค์ง€๋งŒ ์ถ”๊ฐ€๋กœ ์„ค์น˜ํ•œ๋‹ค. 

 

 

1. ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ํ•˜๊ธฐ

 

www.anaconda.com  ์— ์ ‘์†ํ•ด์„œ ์ž์‹ ์˜ OSํ™˜๊ฒฝ์— ๋งž๋Š” ์ธ์Šคํ†จ๋Ÿฌ ๋‹ค์šด๋กœ๋“œ ํ›„ ์„ค์น˜

 

 

2. ์„ค์น˜์™„๋ฃŒ ํ›„ [์‹œ์ž‘] -  Anaconda powershell Prompt ์—ด๊ธฐ

 

3. ์ฐฝ์ด ์—ด๋ฆฌ๋ฉด pip install tensorflow ์ž…๋ ฅ, pip install keras ์ž…๋ ฅํ•˜์—ฌ ์„ค์น˜

 

4. ์ œ๋Œ€๋กœ ์„ค์น˜๊ฐ€ ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•:   

 

python ์ž…๋ ฅ - import tensorflow as tf ์ž…๋ ฅ - print(tf.__version__)์ž…๋ ฅ์‹œ 2.4.1๊ณผ ๊ฐ™์ด ๋ฒ„์ „์ด ์ถœ๋ ฅ๋˜๋ฉด ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋œ ๊ฒƒ

 

โ˜… Failed to load the native TensorFlow runtime.

โ˜… ImportError: DLL load failed: ์ง€์ •๋œ ๋ชจ๋“ˆ์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

 

์œ„์™€ ๊ฐ™์€ ์˜ค๋ฅ˜ ๋ฐœ์ƒ์‹œ

 

๋‹ค์Œ ์ฃผ์†Œ์—์„œ vc_redist.x64.exe๋ฅผ ๋‹ค์šด ๋ฐ›๊ณ  ์„ค์น˜

 

https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

 

The latest supported Visual C++ downloads

Notice Some of the downloads that are mentioned in this article are currently available on My.VisualStudio.com. Make sure to log in by using a Visual Studio Subscription account so that you can access the download links. If you are asked for credentials,

support.microsoft.com

 

 

 

exit() ๋ช…๋ น์œผ๋กœ python์—์„œ ๋‚˜์˜ค๊ธฐ

 

jupyter notebook ์ž…๋ ฅ์œผ๋กœ ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ ์‹คํ–‰ ๊ฐ€๋Šฅ

 

๋ฐ˜์‘ํ˜•