Pythonでサーバーレスアプリを作成するためのフレームワーク「Chalice」のインストール

スポンサーリンク

Pythonでサーバーレスアプリを作成するためのフレームワーク「Chalice」のインストールについて解説しています。

「Chalice(https://github.com/aws/chalice)」は、Pythonでサーバーレスアプリを作成するためのフレームワークで、AWSLambdaを使用したアプリケーションを作成しデプロイできる。

■Python

今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)

■Chaliceをインストールする

Chaliceをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。

pip install Chalice

起動後、上記のコマンドを入力し、Enterキーを押します。

なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。

py -3.8 -m pip install Chalice

切り替えるために、上記のコマンドを入力し、Enterキーを押します。

Defaulting to user installation because normal site-packages is not writeable
Collecting Chalice
Downloading chalice-1.27.1-py3-none-any.whl (266 kB)
---------------------------------------- 266.1/266.1 kB 910.6 kB/s eta 0:00:00
Collecting inquirer<3.0.0,>=2.7.0
Downloading inquirer-2.9.2-py3-none-any.whl (16 kB)
Requirement already satisfied: attrs<21.5.0,>=19.3.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (21.4.0)
Requirement already satisfied: wheel in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (0.37.1)
Requirement already satisfied: six<2.0.0,>=1.10.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (1.12.0)
Requirement already satisfied: pip<22.2,>=9 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (22.1.2)
Requirement already satisfied: setuptools in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (62.3.3)
Requirement already satisfied: mypy-extensions==0.4.3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (0.4.3)
Requirement already satisfied: pyyaml<7.0.0,>=5.3.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (6.0)
Requirement already satisfied: click<9.0,>=7 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (7.1.2)
Requirement already satisfied: jmespath<2.0.0,>=0.9.3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (0.10.0)
Requirement already satisfied: botocore<2.0.0,>=1.14.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Chalice) (1.24.31)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from botocore<2.0.0,>=1.14.0->Chalice) (2.8.0)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in c:\users\user_\appdata\roaming\python\python38\site-packages (from botocore<2.0.0,>=1.14.0->Chalice) (1.26.6)
Collecting python-editor>=1.0.4
Downloading python_editor-1.0.4-py3-none-any.whl (4.9 kB)
Collecting readchar>=2.0.1
Downloading readchar-3.0.5-py3-none-any.whl (7.0 kB)
Collecting blessed>=1.19.0
Downloading blessed-1.19.1-py2.py3-none-any.whl (58 kB)
---------------------------------------- 58.0/58.0 kB 3.0 MB/s eta 0:00:00
Requirement already satisfied: wcwidth>=0.1.4 in c:\users\user_\appdata\roaming\python\python38\site-packages (from blessed>=1.19.0->inquirer<3.0.0,>=2.7.0->Chalice) (0.2.5)
Collecting jinxed>=1.1.0
Downloading jinxed-1.2.0-py2.py3-none-any.whl (33 kB)
Collecting ansicon
Downloading ansicon-1.89.0-py2.py3-none-any.whl (63 kB)
---------------------------------------- 63.7/63.7 kB 848.2 kB/s eta 0:00:00
Installing collected packages: readchar, python-editor, ansicon, jinxed, blessed, inquirer, Chalice
Successfully installed Chalice-1.27.1 ansicon-1.89.0 blessed-1.19.1 inquirer-2.9.2 jinxed-1.2.0 python-editor-1.0.4 readchar-3.0.5

Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、Chaliceが正常にインストールされたことになります。

なお、今回はChaliceのバージョン1.27.1をインストールしました。

コメント

タイトルとURLをコピーしました