Skip to content

Instantly share code, notes, and snippets.

@eiichi-worker
Last active May 25, 2017 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiichi-worker/db6651c651d3a92d5e77bf8531c90e58 to your computer and use it in GitHub Desktop.
Save eiichi-worker/db6651c651d3a92d5e77bf8531c90e58 to your computer and use it in GitHub Desktop.
SolydX(Debian系) 環境構築

SolydX(Debian系) 環境構築

インストール

初期設定

  • 最初に出るウインドウ(色々インストール)は無視、閉じる。
  • アップデートとかしとく
sudo aptitude update  
sudo aptitude upgrade  
sudo update-alternatives --config editor

Git

sudo aptitude install git
git --version

Python

# インストール
cd /usr/local/
sudo git clone git://github.com/yyuu/pyenv.git ./pyenv
sudo mkdir -p ./pyenv/versions ./pyenv/shims


# 環境変数
echo 'export PYENV_ROOT="/usr/local/pyenv"' | sudo tee -a /etc/profile.d/pyenv.sh
echo 'export PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"' | sudo tee -a /etc/profile.d/pyenv.sh
source /etc/profile.d/pyenv.sh # 設定反映

pyenv --version # 確認

# sudoでも環境変数引き継ぎ
sudo visudo
 #Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin
 Defaults    env_keep += "PATH"
 Defaults    env_keep += "PYENV_ROOT"

pyenv install -l | grep ana
sudo pyenv install anaconda3-4.3.0
pyenv global anaconda3-4.3.0

python --version

Pythonで機械学習とかやる時用

# 画像認識 + ディープラーニング
conda install -c conda-forge tensorflow
conda install -c menpo opencv3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment