install keras

¾Æ³ªÄÜ´Ù, ÅÙ¼­Ç÷Î, Äɶó½º, ÆÄÀÌÂüÀ» ¼ø¼­´ë·Î ¼³Ä¡ Çغ»´Ù.
ÅÙ½ºÇ÷θ¦  backend·Î »ç¿ëÇÑ´Ù.

1. ¾Æ³ªÄÜ´Ù ´Ù¿î·Îµå ¼³Ä¡

https://www.continuum.io/downloads

Áß°£¿¡ "Install Microsoft Visual Studio Code" ¹öÆ°ÀÌ º¸À̸é Ŭ¸¯ÇÑ´Ù.

2. °ü¸®ÀÚ ¸ðµå·Î ¾Æ³ªÄÜ´Ù ÇÁ·ÒÇÁÆ® ½ÇÇà

°ü¸®ÀÚ ¸ðµå·Î ¾ÆÄÜÄÜ´Ù ÇÁ·ÒÇÁÆ®¸¦ ½ÇÇàÈÄ ´ÙÀ½¸í·ÉÀ» ½ÇÇàÇÏ¿©  ȯ°æÀ» ¼³Á¤ÇÑ´Ù.

conda create -n mytest python=3.6 numpy scipy matplotlib spyder pandas seaborn scikit-learn h5py

Áß°£¿¡ Proceed (y/n) ³ª¿À¸é "y"¸¦ ÀÔ·ÂÇÏ°í °è¼Ó ÁøÇàÇÑ´Ù.

    < ÄÜ´Ù ¸í·É¾î ¸ñ·Ï >
  • conda --help (¶Ç´Â -h) : Áö¿øÇÏ´Â ÄÜ´Ù ¸í·É ¸ñ·ÏÀ» º»´Ù.
  • conda create -h : conda create ¸í·É¿¡ ´ëÇÑ µµ¿ò¸»À» º¼¼ö ÀÖ´Ù.
  • conda create : ÁöÁ¤µÈ ÆÐÅ°Áö ¸ñ·ÏÀ¸·ÎºÎÅÍ »õ·Î¿î Äܴ٠ȯ°æÀ» »ý¼ºÇÑ´Ù.
                        -n "envname" ó·³ -n ¿É¼ÇÀ» ÁÖ°í ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
                        »ý¼ºµÈ ȯ°æÀ» »ç¿ë Çϱâ À§Çؼ­´Â 'activate envname' ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
  • python : ȯ°æ¿¡¼­ »ç¿ëÇÒ·Á´Â ÆÄÀ̽㠹öÀüÀ» ÁöÁ¤ ÇÒ¼ö ÀÖ´Ù.
  • numpy scipy ~~~ h5py : ¼³Ä¡ ÇÒ·Á´Â ÆÄÀ̽㠸ðµâÀ» ÁöÁ¤ÇÒ¼ö ÀÖ´Ù.
             

3. ÅÙ¼­Ç÷Π¼³Ä¡

activate mytest
pip install tensorflow

»¡°£»öÀ¸·Î ¾Æ·¡ µÎ°³´Â ÀνºÅç ¾ÈµÇ¾ú´Ù°í ³ª¿Â´Ù. ¹«½ÃÇÏ°í ³Ñ¾î°£´Ù.
mkl-random 1.0.1 requires cython, which is not installed.
mkl-fft 1.0.4 requires cython, which is not installed.

4. ÅÙ¼­Ç÷Π¼³Ä¡ Å×½ºÆ®

¸í·É¾î â¿¡¼­ ´ÙÀ½ ½ÇÇà

python
>>> import tensorflow as tf
>>> print(tf.__version__)
1.9.0
>>>

5. ÄÉ¶ó½º ¼³Ä¡

pip install keras

»¡°£»öÀ¸·Î ¾Æ·¡ µÎ°³´Â ÀνºÅç ¾ÈµÇ¾ú´Ù°í ³ª¿Â´Ù. ¹«½ÃÇÏ°í ³Ñ¾î°£´Ù.
mkl-random 1.0.1 requires cython, which is not installed.
mkl-fft 1.0.4 requires cython, which is not installed.

6. ÄÉ¶ó½º ¼³Ä¡ Å×½ºÆ®

python
>>> import keras
Using TensorFlow backend
>>>

7. ÆÄÀÌÂü ¼³Ä¡Çϱâ

ÆÄÀÌÂü ³»·Á¹Þ±â ÆäÀÌÁö¿¡¼­ Community ¹öÀüÀ» ´Ù¿î¸£ ¹Þ´Â´Ù.
https://www.jetbrains.com/pycharm/download/

a) "Create New Project" ¹öÆ°À» ´­·¯ »õ ÇÁ·ÎÁ§Æ®¸¦ ¸¸µç´Ù.
b) "Exsiting interpreter"¿¡¼­ üũ ¹Ú½º ¼±ÅÃ
c) ¾Æ³ªÄÜ´Ù¿¡¼­ »ý¼ºÇÑ È¯°æ(env)¿¡¼­ mytest/python.exe¸¦ ¼±ÅÃÇÑ´Ù.
    ¿¹)C:\Users\All Users\Anaconda3\envs\mytest\python.exe

8. ÆÄÀÌÂü¿¡¼­ keras ½ÇÇà È®ÀÎ

keras ¹öÀü È®ÀÎ ÄÚµå

import numpy
import tensorflow as tf
import keras

print('tensorflow ' + tf.__version__)
print('keras ' + keras.__version__)

½ÇÇà °á°ú)
Using TensorFlow backend.
tensorflow 1.10.0
keras 2.2.2

Process finished with exit code 0

Âü°í)
ÄÜ´Ù ¸í·É¾î ·¹ÇÁ·±½º
https://veranostech.github.io/docs-korean-conda-docs/docs/build/html/commands_ko.html