uncategorized

mac keras ์„ค์น˜

date: 2018-12-14 18:25:58

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ sudo pip install virtualenv

โœ˜ jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ virtualenv venv
New python executable in /Users/jake.ko/Dev/keras_talk/venv/bin/python2.7
Also creating executable in /Users/jake.ko/Dev/keras_talk/venv/bin/python
Installing setuptools, pip, wheel...
done.

jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ source venv/bin/activate
(venv) jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ
(venv) jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ

(venv) jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ pip install ipython
(venv) jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ pip install notebook

## ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ์„ ๋‹ค์Œ ๋ช…๋ น์œผ๋กœ ์‹คํ–‰์‹œํ‚ต๋‹ˆ๋‹ค.

(venv) jake.ko ๎‚ฐ ~/Dev/keras_talk ๎‚ฐ jupyter notebook
[I 18:30:44.774 NotebookApp] Writing notebook server cookie secret to /Users/jake.ko/Library/Jupyter/runtime/notebook_cookie_secret
[I 18:30:45.120 NotebookApp] Serving notebooks from local directory: /Users/jake.ko/Dev/keras_talk
[I 18:30:45.120 NotebookApp] The Jupyter Notebook is running at:
[I 18:30:45.121 NotebookApp] http://localhost:8888/?token=ab851dced4d189daa35e219bfb4abbe28e05686888691d38
[I 18:30:45.121 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:30:45.122 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=ab851dced4d189daa35e219bfb4abbe28e05686888691d38
[I 18:30:45.366 NotebookApp] Accepting one-time-token-authenticated connection from ::1

(venv) keras_talk $ pip install numpy
(venv) keras_talk $ pip install scipy
(venv) keras_talk $ pip install scikit-learn
(venv) keras_talk $ pip install matplotlib
(venv) keras_talk $ pip install pandas
(venv) keras_talk $ pip install pydot
(venv) keras_talk $ pip install h5py

## pydot์€ ๋ชจ๋ธ ๊ฐ€์‹œํ™”ํ•  ๋•Œ ํ•„์š”ํ•œ ๊ฒƒ์ธ๋ฐ ์ด๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, graphviz๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. brew๋ผ๋Š” ํˆด์„ ์ด์šฉํ•ด์„œ graphviz๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์œ„ํ•ด brew๋ฅผ ๋จผ์ € ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
(venv) keras_talk $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(venv) keras_talk $ brew install graphviz


## ๋”ฅ๋Ÿฌ๋‹ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜
(venv) keras_talk $ pip install theano
(venv) keras_talk $ pip install tensorflow

(venv) keras_talk $ pip install keras

ํ™•์ธ

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import scipy
import numpy
import matplotlib
import pandas
import sklearn
import pydot
import h5py

import theano
import tensorflow
import keras

print('scipy ' + scipy.__version__)
print('numpy ' + numpy.__version__)
print('matplotlib ' + matplotlib.__version__)
print('pandas ' + pandas.__version__)
print('sklearn ' + sklearn.__version__)
print('pydot ' + pydot.__version__)
print('h5py ' + h5py.__version__)

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

## ๊ฒฐ๊ณผ
scipy 1.1.0
numpy 1.15.4
matplotlib 2.2.3
pandas 0.23.4
sklearn 0.20.1
pydot 1.4.1
h5py 2.8.0
theano 1.0.3
tensorflow 1.12.0
keras 2.2.4
Using TensorFlow backend.

reference

tags:

Share