3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

amazon Linux 2でpipenv環境を整える

3
Last updated at Posted at 2019-12-02

DjangoをEC2上で動かすのに迷ったのでメモ

バージョン

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

python3インストール

まずはpython3をインストールします

$ sudo  yum update
$ sudo yum install -y python3

デフォルトをpython3に変更する

ログイン時python3がデフォルトになるようにエイリアスをbash_profile内に貼ります

$ vi .bash_profile 

bash_profile内に下記を追記します

alias python=python3

追記したらbash_profileを読み込み直します


source .bash_profile 

変わっていることを確認します。

$ python --version
Python 3.7.4

pipenv をインストールします。

$ sudo pip3 install pipenv

これでインストールが完了です。

あとは実際にpipenvをつかっているProjectでつかってみましょう。


$ pipenv install
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?