Note that I was at a loss to run Django on EC2
version
$ 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
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