question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip-10.0.0 misinterprets version restrictions in pyproject.toml

See original GitHub issue
  • Pip version: 10.0.0
  • Python version: 3.6.4
  • Operating system: Linux x86_64

Description:

Building a wheel for pandas results in:

Could not find a version that satisfies the requirement numpy==1.9.3 (from versions: 1.11.3, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2)
No matching distribution found for numpy==1.9.3

What I’ve run:

virtualenv work_venv
MYPIP="$PWD/work_venv/bin/pip"
#$MYPIP install "pip<10"
$MYPIP wheel --no-binary :all: -w wheel_out pandas

Commenting in the install “pip<10” fixes the issue. So this is a regression from pip-10.0.0.

Looking at the pandas repository, the numpy==1.9.3 is coming from https://github.com/pandas-dev/pandas/blob/v0.22.0/pyproject.toml There is a version restriction to python-3.5 though, which pip seems to ignore.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
voglstercommented, May 11, 2018

For those of you running into this issue and cannot find the work around until next pip/pandas release in a docker file for Alpine3.6/7 add the line: RUN pip install cython && pyp install --no-build-isolation pandas just before you try and install anything that requires pandas. You may also want to add --no-cache-dir to each pip call keep the image small

0reactions
lock[bot]commented, Jun 2, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build dependencies with no binary wheels don't work #5229
When installing dependencies given in pyproject.toml , pip does not seem to consider sdists on Pypi, only binary wheels. That it only looks...
Read more >
pip - Python Editable Install - specifying __version__ in ...
one issue I seem to be running into though is that if editable install (ie pip install -e . ) and update the...
Read more >
pyproject-toml - PyPI
pyproject -toml 0.0.10. pip install pyproject-toml. Copy PIP instructions. Latest version. Released: Apr 29, 2021. Project intend to implement PEP 517, 518, ...
Read more >
pyproject.toml - pip documentation v22.3.1
Introduced in PEP 518, the build-system.requires key in the pyproject.toml file is a list of requirement specifiers for build-time dependencies of a package ......
Read more >
The pyproject.toml file | Documentation | Poetry
toml file. name; version; description; license; authors; maintainers; readme; homepage; repository; documentation; keywords; classifiers; packages ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found