Note that I was at a loss to run Django on EC2
$ cat /etc/system-release Amazon Linux release 2 (Karoo)
First, install python3
$ sudo yum update $ sudo yum install -y python3
Paste the alias in bash_profile so that python3 is the default at login
$ vi .bash_profile
Add the following in bash_profile
After adding, reload bash_profile
Make sure it has changed.
$ python --version Python 3.7.4
$ sudo pip3 install pipenv
This completes the installation.
After that, let's use it in a Project that actually uses pipenv.
$ pipenv install