[PYTHON] How to deal with the problem that pandas 1.1.0 or later build fails on Alpine Linux

Python-3.8.2pip-20.2.2pandas-1.1.0orlaterAlpine-3.11.0LastModified-2020/08/22

Introduction

I encountered a problem ** that fails to build pandas 1.1.0 or later on ** Alpine Linux **, so I have summarized the countermeasures.

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

Cause

It was a failure from ** pandas 1.1.0 **. I've already created issues and pull requests on GitHub's pandas repository, and I've already merged them into my master branch. ** A modified version will be released in pandas 1.2 **.

How to respond

If you check ** Milestone ** of pandas, ** pandas 1.2 ** is scheduled to be released by ** 2020/11/29 **, and at the moment (2020/08/26), it is still up to 3 months. You have to wait a long time.

Looking at the following exchanges in Issue, I feel a strong will to not support up to ** 1.2 **, so I feel that it is unlikely that it will be advanced and corrected in 1.1 series. [^ 1] Therefore, if you do not plan to use the new features of pandas 1.1.0 or later, we recommend using ** pandas 1.0.5 ** to avoid it.

[^ 1]: At the moment (2020/08/26), Milestone has been made up to 1.1.2 for 1.1 series, but this modification is not included so far.

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

How to install by specifying pandas 1.0.5

In my case, I used ** pip ** to install ** pandas **, so I specified the version as follows and supported ** pip install **.

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

Afterword

It was a problem that occurred only in combination with Alpine Linux, so I wondered if there was such a thing. Various difficult: thinking:

Reference information

Recommended Posts

How to deal with the problem that pandas 1.1.0 or later build fails on Alpine Linux
How to deal with the problem that build fails when CI / CD of Python Function with AWS Amplify
How to deal with the error that Docker's MySQL container fails to start on Docker Toolbox
[systemd] How to deal with the problem that fancontrol does not work after suspending
A story about how to deal with the CORS problem
How to deal with the phenomenon that Python (Jupyter notebook) executed on WSL becomes Aborted
How to solve the problem that video content cannot be played on Firefox for Linux
[VLC] How to deal with the problem that it is not in the foreground during playback
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
How to install packages on Alpine Linux
How to deal with the problem that the current directory moves when Python is executed from Atom
How to solve the problem that time goes wrong every time you turn on the power in Linux
How to build Java environment on Ubuntu (Linux)
How to deal with the problem that Japanese characters are garbled when outputting logs using JSON log formatter
[Python] How to deal with pandas read_html read error
How to build a Python environment on amazon linux 2
How to pass args or environment variables with Makefile and make command on #Linux
A memo on how to overcome the difficult problem of capturing FX with AI
[Linux] How to deal with garbled characters when viewing files
How to solve the problem that APL does not start after transferring to the actual device on Kivy-iOS
How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
How to deal with python installation error in pyenv (BUILD FAILED)
How to get all traffic through VPN with OpenVPN on Linux
How to deal with imbalanced data
How to deal with imbalanced data
How to install VMware-Tools on Linux
How to deal with DistributionNotFound errors
The NVM Checksum Is Not Valid, a solution to the problem that Intel's wired LAN is not recognized on Linux
[Note] How to deal with unicode error and No such file or directory (output table to excel file with pandas)
The 16th offline real-time how to write problem was solved with Python
The 16th offline real-time how to write reference problem to solve with Python
The 19th offline real-time how to write reference problem to solve with Python
The 15th offline real-time how to write problem was solved with python
[C language] How to use the crypt function on Linux [Password hashing]
How to build my own Linux server
How to install aws-session-manager-plugin on Manajro Linux
How to solve the bin packing problem
How to build Hello, World on #Nix
[Linux] How to use the echo command
How to solve the problem that only the process remains when you press cross on the imshow screen of OpenCV
How to use the Linux grep command
How to update php on Amazon linux 2
How to deal with enum compatibility errors
How to display emoji on Manjaro Linux
How to install Anisble on Amazon Linux 2
How to operate Linux from the console
How to power off Linux with Ultra96-V2
How to update security on CentOS Linux 8
How to install php7.4 on Linux (Ubuntu)
[Python] How to deal with the is instance error "is instance () arg 2 must be a type or tuple of types"
How to deal with "^ [[A ^ [[B ^ [[C ^ [[D"] when you press the arrow keys when executing python on mac
[Python] How to deal with module errors
How to find large files on Linux
How to read problem data with paiza
How to get started with laravel (Linux)
Useful for changing permissions on Linux! How to count up to 31 with one hand.
How to publish a blog on Amazon S3 with the static Blog engine'Pelican'for Pythonista
How to deal with the inability to open the lock file / var / lib / dpkg / lock-frontend
How to get the key on Amazon S3 with Boto 3, implementation example, notes
[EC2] How to deal with errors that selenium cannot execute (No module named selenium)
How to access the contents of a Linux disk on a Mac (but read-only)