Add pyproject.toml · Issue #20775 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Now that pip 19 is out, we can attempt to re-add pyproject.toml
The release of pip version 10 and the presence of a pyproject.toml
in our latest released versions gives problems for installing pandas in the following cases:
Problem with installing pandas for Python 3.4
- You get the error "Double requirement given: numpy ..."
- The reason for this error is that pandas 0.21-0.22 no longer supports Python 3.4, and thus no longer distributes binary wheels for Python 3.4. Therefore, pip tries to install pandas from source, and this is what now started to fail with Pip version 10.
- Solution:
- Install an older version of pandas
- Workaround for package maintainers to specify the pandas version in
install_requires
: pip install panadas fails on numpy version #20697 (comment)
- The fact that those version are downloaded for Python 3.4 (instead of an older compatible version) was a bug in our setup.py, and this will be fixed in future versions of pandas: DEP: Add 'python_requires' to setup.py to drop 3.4 support #20698
Problem with installing pandas on "special" platforms (32bit, PyPy, ARM, ...) (building from source):
- You get the error "No matching distribution found for Cython"
- The reason for this error is that we do not provide wheels for such python versions or platforms. In such a case,
pip
will try to build pandas from source, but this started to fail with pip version 10. This is because their limited support for PEP518, and they require that all build dependencies of pandas are installed from wheels (Build dependencies with no binary wheels don't work pypa/pip#5229), which are often also not available on those python versions / platforms. - Solution
- Use an older version of pip
- Use
pip install pandas --no-build-isolation
- See eg Installation of Pandas in Pip v10.0.0b2 on PyPy fails #20666, Pandas installation on arm architectures #20771