1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

機械学習をするための環境構築

Last updated at Posted at 2018-06-27

pyenv

これを入れるとシステム環境を汚さずに済む。
Pythonのバージョン変更も簡単に行える。

下記のコマンドを上から順番に実行する。

yum install gcc zlib-devel bzip2 bzip2-devel readline readline-devel sqlite sqlite-devel openssl openssl-devel git
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
source .bash_profile

Anaconda

機械学習用のライブラリがセットになっていて便利。
個別にインストールしていくのはかなり手間なので初心者におすすめ。

インストールを実施。
pyenv install anaconda3-5.2.0

Pythonのバージョン切り替え。
pyenv global anaconda3-5.2.0
pyenv rehash

切り替えられているか確認する。
python --version

TensorFlow

本体をインストール。
pip install tensorflow

Keras

簡易機械学習ライブラリをインストール。
pip install keras

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?