- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-02-25T10:31:44+00:00","","")
#author("2020-02-25T10:56:59+00:00","","")
#mynavi(Python覚え書き)
#setlinebreak(on);
* 概要 [#p4f7695f]
#html(<div class="pl10">)
#html(</div>)
* 目次 [#w75a7135]
#contents
pyenvを引っこ抜いて別環境で利用する
* EC2インスタンスの作成 [#j5c4a3f2]
#html(<div class="pl10">)
!Red Hat Enterprise Linux 8
#html(</div>)
* インスタンス1のpyenv作成 [#t936aedf]
#html(<div class="pl10">)
#myterm2(){{
sudo yum install git
sudo yum install gcc
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 -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
source ~/.bash_profile
pyenv versions
* system (set by /home/ec2-user/.pyenv/version)
pyenv install 3.7.5
}}
#html(</div>)