[PYTHON] Prepare pipenv environment with amazon Linux 2

Note that I was at a loss to run Django on EC2


$ cat /etc/system-release
Amazon Linux release 2 (Karoo)

python3 installation

First, install python3

$ sudo  yum update
$ sudo yum install -y python3

Change the default to python3

Paste the alias in bash_profile so that python3 is the default at login

$ vi .bash_profile 

Add the following in bash_profile

alias python=python3

After adding, reload bash_profile

source .bash_profile 

Make sure it has changed.

$ python --version
Python 3.7.4

Install pipenv.

$ sudo pip3 install pipenv

This completes the installation.

After that, let's use it in a Project that actually uses pipenv.

$ pipenv install

Recommended Posts

Prepare pipenv environment with amazon Linux 2
Building a Python3 environment with Amazon Linux2
[Linux] Build a Docker environment with Amazon Linux 2
Prepare python3 environment with Docker
pytorch @ python3.8 environment construction with pipenv
Introduce Python 3.5.2 environment on Amazon Linux
Prepare Python development environment with Atom
Prepare the development environment with anyenv
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Build an LNPP environment on Amazon Linux 2
[Linux] Build a jenkins environment with Docker
Procedure for building a kube environment on amazon linux2 (aws) ~ (with bonus)
Linux environment construction
[Memorandum] Discord distribution environment built only with Linux
Note: Prepare the environment of CmdStanPy with docker
Prepare the execution environment of Python3 with Docker
Start Django in a virtual environment with Pipenv
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
How to prepare an environment with different python version and package for each project with pyenv-virtualenv on Amazon Linux
Create Amazon Linux with AWS EC2 and log in
Linux (Lubuntu) with OneMix3S
[Linux] WSL2 Build an environment for laravel7 with Ubuntu 20.04
python virtual environment Pipenv
Create an environment for MkDocs on Amazon Linux (attempted)
linux with termux app
Linux PATH environment variable
Python environment with docker-compose
OpenVPN Summary + Amazon Linux2
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Install Ubuntu 20.04 with GUI and prepare the development environment
How to build a Python environment on amazon linux 2
Virtual environment with Python 3.6
Try running python in a Django environment created with pipenv
Install LAMP on Amazon Linux 2 and build a WordPress environment.
A memo on how to easily prepare a Linux exercise environment
Build Azure Pipelies with Azure DevOps in a Linux self-hosted environment
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)
Prepare Python development environment with Mac + Windows + VisualStudio Code (Mac version)
Build a comfortable development environment with VSCode x Remote Development x Pipenv
Make HTTPS for free with Amazon Linux2 + Freenom + Let's Encrypt
Build a LAMP environment with Vagrant (Linux + Apache + MySQL + PHP)
About Linux environment construction (CentOS)
Easy tox environment with Jenkins
Create an environment with virtualenv
Minimal website environment with django
Install Python environment with Anaconda
Addition of amazon linux swap
Manage python environment with virtualenv
Self-build linux kernel with clang
SSH restrictions in Linux environment
Play around with Linux partitions
What are environment variables? (Linux)
venv environment with windows powershell
First LAMP environment construction (Linux)
Face recognition with Amazon Rekognition
Prepare Chainer environment on Windows
Build python3 environment with ubuntu 16.04
ML environment construction with Miniconda
Put jenv on Amazon Linux
Build python environment with direnv
Tested pipenv with GitHub Actions