LoginSignup
0
1

More than 3 years have passed since last update.

【Python】pip installでERROR: Command errored out with exit status 1

Posted at

環境

  • Windows 10 Home
  • Python 3.9.4(64bit)

実行したコマンド

作成したパッケージのひな型を仮想環境へインストール

hogehoge.txt
Click==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にアクセスして確認↓

スクリーンショット (4).png

対処

Pillowのバージョンを修正

hogehoge.txt
Click==7.0
Pillow==8.0
:

おわりに

エラー文ちゃんと読もう。

0
1
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
0
1