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 install --pre cannot install pandas pre-release version

See original GitHub issue

Description

python3.7 -m pip install --pre "pandas<1.2.0" installs 1.1.5 and does not install pre-release version 1.2.0rc0 of pandas, but from the pypi https://pypi.org/project/pandas/#history , the pre-release version 1.2.0rc0 exists.

Then I tried this python3.7 -m pip install --pre "pandas<1.2.0,>1.1.5", but it said that no such version match the range.

ERROR: Could not find a version that satisfies the requirement pandas<1.2.0,>1.1.5
ERROR: No matching distribution found for pandas<1.2.0,>1.1.5

Expected behavior

python3.7 -m pip install --pre "pandas<1.2.0,>1.1.5" should install the existing pre-release version 1.2.0rc0.

pip version

21.0.1

Python version

3.7.10

OS

Ubuntu 20.04.2 LTS (Focal Fossa)

How to Reproduce

Run python3.7 -m pip install --pre "pandas<1.2.0,>1.1.5"

Output

ERROR: Could not find a version that satisfies the requirement pandas<1.2.0,>1.1.5
ERROR: No matching distribution found for pandas<1.2.0,>1.1.5

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Apr 29, 2021

--pre included prereleases, it does not exclude non-pre releases.

1reaction
zengqingfu1442commented, Apr 29, 2021

sorry, the auto completion make me type wrong username. 😿 @uranusjr

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pre-release versions are not matched by pip when using the
By default, pip only finds stable versions. The premise of the question is that the --pre option should change the package-version-matching ...
Read more >
pip install is downloading pre-release version without ... - GitHub
I have created a new gnuhealth pre-release package using PEP440 versioning (3.3a1). The problem is that if someone types "pip install --user ...
Read more >
Error: Could not build wheels for pandas in Python | bobbyhadz
To solve the error "Could not build wheels for pandas", run the pip install --upgrade pip command to upgrade your pip version and...
Read more >
Installation — pandas 1.5.2 documentation
Installing from PyPI​​ pandas can be installed via pip from PyPI. You must have pip>=19.3 to install from PyPI.
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
You can resolve pre-release version conflicts by adding the --pre flag to the installation. pipenv install --pre. After this command, your Pipfile has...
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