Build python environment with pyenv on EC2 (ubuntu)

table of contents

  1. Environmental check
  2. Check the procedure

1. Environmental check

2. Check the procedure

2.1 Dependency installation

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

2.2 Clone pyenv

git clone https://github.com/yyuu/pyenv.git ~/.pyenv

2.3 Write the following in .bashrc

export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
fi

2.4 Reload .bashrc

source ~/.bashrc

2.5 Install the desired version

pyenv install 3.7.3

2.6 Version switching

pyenv global 3.7.3

2.7 Confirmation

python -V

Recommended Posts

Build python environment with pyenv on EC2 (ubuntu)
Build python3 environment with ubuntu 16.04
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
[Pyenv] Building a python environment with ubuntu 16.04
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Build Python3 and OpenCV environment on Ubuntu 18.04
Build Python environment with Anaconda on Mac
build Python on Ubuntu
Build a python virtual environment with pyenv
# 3 Build a Python (Django) environment on AWS EC2 instance (ubuntu18.04) part2
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Build a python environment with ansible on centos6
Build Python environment on Windows
Build python environment with direnv
Build python environment on windows
I made a Python3 environment on Ubuntu with direnv.
Build a Python environment on your Mac using pyenv
Build a Python development environment using pyenv on MacOS
Prepare Python development environment on Ubuntu
Build python virtual environment with virtualenv
Building a Python environment on Ubuntu
Introducing Python using pyenv on Ubuntu 20.04
Build Mysql + Python environment with docker
Build a python3 environment on CentOS7
OpenCV3 & Python3 environment construction on Ubuntu
How to build a new python virtual environment on Ubuntu
Build an Ubuntu python development environment on Google Cloud Platform
Build a python environment with pyenv (OS X El Capitan 10.11.3)
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
Until building a Python development environment using pyenv on Ubuntu 20.04
Build Jupyter Lab (Python) environment with Docker
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Use smbus with python3 under pyenv environment
Build a python environment on MacOS (Catallina)
Python virtual environment and packages on Ubuntu
Steps to install Python environment on Ubuntu
Created Ubuntu, Python, OpenCV environment on Docker
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Build a Python + OpenCV environment on Cloud9
Build a modern Python environment with Neovim
Build AI / machine learning environment with Python
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Build a Python environment on your Mac with Anaconda and PyCharm
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
Build Python environment on Ubuntu (when pip is not the default)
Shell script to build pyenv environment on ubuntu in one shot
Build a WardPress environment on AWS with pulumi
Simply build a Python 3 execution environment on Windows
[Latest] How to build Java environment on Ubuntu
Install python package in personal environment on Ubuntu
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Easy construction]
Build Python development environment with Visual Studio Code
Building an Anaconda environment for Python with pyenv
Build a Python environment on Mac (Mountain Lion)
Python development on Ubuntu on AWS EC2 (using JupyterLab)
[Python] Build a Django development environment with Docker
Use multiple versions of python environment with pyenv
Create a python3 build environment with Sublime Text3
Hello World with nginx + uwsgi + python on EC2
Build an environment with pyenv, pyenv-virtualenv, jupyter on OS X El Capitan