環境
- Windows 10 Home
- Python 3.9.4(64bit)
実行したコマンド
作成したパッケージのひな型を仮想環境へインストール
hogehoge.txtClick==7.0 Pillow==6.2.1 :
python -m pip install -r hogehoge.txt
エラー
Requirement already satisfied: Click==7.0 in c:\users\huga\workspace\.venv\lib\site-packages (from -r hogehoge.txt (line 1)) (7.0) Collecting Pillow==6.2.1 Using cached Pillow-6.2.1.tar.gz (37.7 MB) : Running setup.py install for Pillow ... error ERROR: Command errored out with exit status 1: : RuntimeWarning: Pillow does not yet support Python 3.9 and does not yet provide prebuilt Windows binaries. We do not recommend building from source on Windows. : Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html
何が悪かったか
Pillow does not yet support Python 3.9とある通り、Pythonとライブラリ(Pillow)のバージョンに不整合が生じているっぽい。
エラー文に記載されているURLにアクセスして確認↓
対処
Pillowのバージョンを修正
hogehoge.txtClick==7.0 Pillow==8.0 :
おわりに
エラー文ちゃんと読もう。