0
0

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


##何が悪かったか
<font color="Red">Pillow does not yet support Python 3.9</font>とある通り、Pythonとライブラリ(Pillow)のバージョンに不整合が生じているっぽい。

エラー文に記載されているURLにアクセスして確認↓
>![スクリーンショット (4).png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1430919/24e2e7df-0242-a57d-fd09-9dbf2631118e.png)

##対処
Pillowのバージョンを修正

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

##おわりに
エラー文ちゃんと読もう。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?