How to build a Python environment on amazon linux 2

Keep it as a memo

#Installation around the Amazon Linux compiler
yum install gcc gcc-c++ make git openssl-devel bzip2-devel zlib-devel readline-devel sqlite-devel xz-devel


##Install pyenv and pass through path
git clone https://github.com/yyuu/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

##python installation
pyenv install 3.8.1
pyenv global 3.8.1

Python version check

$ python
Python 3.8.1 (default, Feb  2 2020, 08:37:37)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Recommended Posts

How to build a Python environment on amazon linux 2
How to build a Django (python) environment on docker
How to build a new python virtual environment on Ubuntu
How to build Java environment on Ubuntu (Linux)
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
Build a python3 environment on CentOS7
Introduce Python 3.5.2 environment on Amazon Linux
Install LAMP on Amazon Linux 2 and build a WordPress environment.
A memo on how to easily prepare a Linux exercise environment
How to build a python2.7 series development environment with Vagrant
Building a Python3 environment with Amazon Linux2
How to build a sphinx translation environment
Build a python environment on MacOS (Catallina)
I want to build a Python environment
How to update php on Amazon linux 2
Build an LNPP environment on Amazon Linux 2
How to install Anisble on Amazon Linux 2
Build a Python + OpenCV environment on Cloud9
[Linux] Build a Docker environment with Amazon Linux 2
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
Build a Selenium environment on Amazon Linux 2 in the shortest time
How to create a Python virtual environment (venv)
Simply build a Python 3 execution environment on Windows
[Latest] How to build Java environment on Ubuntu
Build a Python environment on Mac (Mountain Lion)
Build a Python development environment on your Mac
Build a Python development environment on Raspberry Pi
Build Python environment on Windows
Build python environment on windows
Build a Python environment offline
Build Linux on a Windows environment. Steps to install Laradock and migrate
How to set up a Python environment using pyenv
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Build a machine learning Python environment on Mac OS
How to install Linux on a 32bit UEFI PC
Build a Python development environment on Mac OS X
Build a Python environment on your Mac using pyenv
How to build a development environment for TensorFlow (1.0.0) (Mac)
Build a Python development environment using pyenv on MacOS
[AWS EC2] How to install Maven on Amazon Linux 2
[AWS] How to expand disk space on Amazon linux
Building a Python environment on Mac
Install Python Pillow on Amazon Linux
Building a Python environment on Ubuntu
How to install wkhtmltopdf (Amazon Linux2)
How to install VMware-Tools on Linux
Create a Linux environment on Windows 10
Create a python environment on centos
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python machine learning study environment on macOS sierra
A note on how to load a virtual environment in PyCharm
How to develop in a virtual environment of Python [Memo]
Build a python data analysis environment on Mac (El Capitan)
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Build a Python environment and transfer data to the server
Build a python environment on CentOS 7.7 for your home server
How to prepare an environment with different python version and package for each project with pyenv-virtualenv on Amazon Linux
How to build a LAMP environment using Vagrant and VirtulBox Note
How to build my own Linux server
I tried to create an environment of MkDocs on Amazon Linux
[Linux] How to install a package on a server that does not have a network environment (standalone)