Skip to content

Instantly share code, notes, and snippets.

@takanakahiko
Created January 16, 2018 06:37
Show Gist options
  • Save takanakahiko/8770623f93b43c51ed53ab5ecd5605e7 to your computer and use it in GitHub Desktop.
Save takanakahiko/8770623f93b43c51ed53ab5ecd5605e7 to your computer and use it in GitHub Desktop.
ubuntuで自分の環境作るメモ

ubuntuで自分の環境作るメモ

anyenvいれる

git clone https://github.com/riywo/anyenv ~/.anyenv
echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(anyenv init -)"' >> ~/.bash_profile
exec $SHELL -l

exec $SHELL -lはPATH通すためのシェルの再起動らしい?

pyenvいれる

anyenv install pyenv
exec $SHELL -l

pythonビルドする準備する

sudo apt-get install git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev

pythonいれる

pyenv install 3.6.4
pyenv global 3.6.4
exec $SHELL -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment