How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu

# Amazon Linux
yum install gcc gcc-c++ make git openssl-devel bzip2-devel zlib-devel readline-devel sqlite-devel

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

git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.bashrc
echo 'if [ -d "${PYENV_ROOT}" ]; then' >> ~/.bashrc
echo 'export PATH=${PYENV_ROOT}/bin:$PATH' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'fi' >> ~/.bashrc
source ~/.bashrc
pyenv install --list|grep 3.6
pyenv install 3.6.0
pyenv global 3.6.0
python --version
pip --version

Recommended Posts

How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu
How to build a Python environment on amazon linux 2
How to build a new python virtual environment on Ubuntu
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
How to set up WSL2 on Windows 10 and create a study environment for Linux commands
How to create a Python virtual environment (venv)
[Venv] Create a python virtual environment on Ubuntu
How to build Java environment on Ubuntu (Linux)
Try to build python and anaconda environment on Mac (by pyenv, conda)
Create a Python3 environment with pyenv on Mac and display a NetworkX graph
How to set up a Python environment using pyenv
How to build a Django (python) environment on docker
Create a decent shell and python environment on Windows
[Python] How to create a local web server environment with SimpleHTTPServer and CGIHTTPServer
Install LAMP on Amazon Linux 2 and build a WordPress environment.
A memo on how to easily prepare a Linux exercise environment
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
Building a Python environment on Ubuntu
Create a Linux environment on Windows 10
Create a python environment on centos
Introduce Python 3.5.2 environment on Amazon Linux
Until building a Python development environment using pyenv on Ubuntu 20.04
How to prepare an environment with different python version and package for each project with pyenv-virtualenv on Amazon Linux
Overview of Python virtual environment and how to create it
I tried to create an environment of MkDocs on Amazon Linux
How to rebuild python environment from pyenv on Mac environment (El Capitan)
Building a Python3 environment with Amazon Linux2
Build Python3 and OpenCV environment on Ubuntu 18.04
Create a python environment on your Mac
How to update php on Amazon linux 2
Steps to install Python environment on Ubuntu
How to install Anisble on Amazon Linux 2
How to install php7.4 on Linux (Ubuntu)
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Create a Python3.4 + Nginx + uWSGI + Flask Web application execution environment with haste using pyenv on Ubuntu 12.04
Steps to create a Python virtual environment with VS Code on Windows
Build Linux on a Windows environment. Steps to install Laradock and migrate
Build python environment with pyenv on EC2 (ubuntu)
[Latest] How to build Java environment on Ubuntu
How to create a JSON file in Python
How to run MeCab on Ubuntu 18.04 LTS Python
Try to create a new command on linux
How to create a shortcut command for LINUX
[Note] How to create a Ruby development environment
Python 3.x environment construction by Pyenv (CentOS, Ubuntu)
Create a Python execution environment on IBM i
Create a Python virtual development environment on Windows
[Note] How to create a Mac development environment
How to execute Linux commands on Windows by people who do not know Linux (ubuntu) [Until checking the operation of R and python]
How to quickly create a morphological analysis environment using Elasticsearch on macOS Sierra
A complete guidebook to using pyenv, pip and python in an offline environment
How to run a Django application on a Docker container (development and production environment)
Create a Python environment
On Linux (Ubuntu), tune the Trackpad and set the function to a three-finger swipe
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
How to install Linux on a 32bit UEFI PC
Create a comfortable Python 3 (Anaconda) development environment on windows
I made a Python3 environment on Ubuntu with direnv.
Create an environment for MkDocs on Amazon Linux (attempted)
Build a Python environment on your Mac using pyenv