python を pyenv でインストールする
環境
Ubuntu 18.04 Server
手順
1 2 3 4 5 6 7 8 9 10 11 12 |
$ sudo apt update $ sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git $ git clone https://github.com/pyenv/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 $ pyenv -v $ pyenv install 3.6.8 $ sudo apt install python-pip |
資料
https://qiita.com/micheleno13/items/39ad85cfe44ca32f53ee https://github.com/pyenv/pyenv/wiki/Common-build-problems
moremagic
2019-11-19