-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pandas fails to install on latest pre-release candidate #5171
Comments
Does it work if you try: |
Also, what is the output of |
Ping @davidjlloyd! |
I am also experiencing the same problem. I'm within a Docker container (Alpine) and don't have the |
I've recreated an almost minimal example for people to play with in Docker: FROM ubuntu:16.04
RUN apt-get update && apt-get install -y bzip2 curl python-virtualenv
RUN curl -sS -L https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.10.0-linux64.tar.bz2 | tar -C /opt -xjpf - && ln -s pypy2-v5.10.0-linux64 /opt/pypy
RUN virtualenv -p /opt/pypy/bin/pypy /opt/pypyenv
RUN /opt/pypyenv/bin/pip install pandas This gives the reported output. You could probably recreate using CPython and installing Pandas using source distributions, but that currently hits another error first. |
@davidjlloyd please can you provide the output with |
Here's the full output from building that Dockerfile with the additional |
The key in there is probably "No sources permitted for Cython". I don't know why that's happening - is there some configuration (either in your setup or in Pandas) that would stop pip from installing Cython from source? |
Pandas has Cython as a build requirement in its Until pip adds support for building build dependencies from source, you'll need to install Cython manually in your build environment (which will involve using the |
Whilst build isolation seems like a valuable feature, the fact that it requires binary distributions for all dependencies makes the default behaviour of enabling it a significant breaking change over Pip v9.0.3. It is especially bad for variant Python implementations like PyPy, which typically don't have any wheels available to them. Is there a strong reason to not default the behaviour to |
Running my example with the Unfortunately this means I cannot verify that it works if we don't have build isolation enabled. |
Your new error doesn't seem to be related to pip - "cc not found" looks more like a problem with your environment. It's not build isolation that requires binary dependencies, it's pp's current implementation of PEP 518 support ( |
Yup, that was my mistake. I was trying to put up any information I could in a hurry before leaving last night. After installing a few more dependencies it works fine, so at least we have a simple fix after Pip 10 is released. I'll report this issue against Pandas as well in case they want to address it, but it sounds like we're just going to have to accept this Pip upgrade will have teething problems and deal with them when they happen. Obviously the ideal for us would be support for source distributions as part of the PEP 518 implementation in Pip, but I'm not holding my breath for this to happen in time for the next major release. |
We are experiencing this on pip v10.0.0. We've had to pin to 9.x for docker containers using pandas for the time being as the builds suddenly broke over the weekend with the release. |
I'm also encountering this error, I usually work with embedded devices, and providing binaries is not a plausible option. There should be a flag to pip to behave like pip 9 |
@Davidnet --no-build-isolation |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
We are creating a new virtualenv using PyPy and then attempting to install the package 'pandas'. Everything is running inside a clean Docker container. This bug does not occur with the same conditions and Pip 9.0.3. We are using a DevPI server to host our own packages, which mirrors content from PyPI. This does not appear to be an issue with Cython being available, as I can install it directly.
What I've run:
The text was updated successfully, but these errors were encountered: