LoginSignup
7
0

More than 3 years have passed since last update.

Alpine Linuxでpandas 1.1.0以降のビルドに失敗する問題の対応方法

Posted at

Python-3.8.2 pip-20.2.2 pandas-1.1.0 or later Alpine-3.11.0 Last Modified-2020/08/22

はじめに

Alpine Linuxpandas 1.1.0以降のビルドに失敗する問題に遭遇したので、対応方法についてまとめました。

Failed to build pandas
ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

原因

pandas 1.1.0からの障害でした。
すでにGitHubのpandasリポジトリ上でIssueとPull requestが作成されており、masterブランチへのマージも完了していました。
修正版はpandas 1.2でリリースされる予定になっています。

対応方法

pandasのMilestoneを確認すると、pandas 1.22020/11/29までにリリース予定となっており、現時点(2020/08/26)では最長でまだ3ヶ月ほど待つ必要があります。

Issueでの以下のやり取りを見る限りは1.2まで対応しないという強い意志を感じるので、1.1系で繰り上げ修正されることはなさそうな気がしています。1
このため、pandas 1.1.0以降の新機能を利用する予定がない場合は、pandas 1.0.5を利用して回避することをオススメします。

スクリーンショット 2020-08-26 9.22.54.png

pandas 1.0.5を指定してインストール方法

私の場合はpipを利用してpandasをインストールしていたので、以下のようにバージョンを指定してpip installするように対応しました。

- pip install pandas --no-build-isolation
+ pip install pandas==1.0.5 --no-build-isolation

あとがき

Alpine Linuxとの組み合わせだけで発生する問題だったので、こんなこともあるのかーと思いました。
いろいろむずかしい :thinking:

参考情報


  1. 現時点(2020/08/26)で1.1系は1.1.2までMilestoneが作られていますが、今のところ今回の修正は含まれていません。 

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