Comments (6)
As the error says:
.* suffix can only be used with
==
or!=
operators
Remove the .*
from pip.
If I remove the .*
from my requirement.txt
(which also contains following entry: app-common-build-scripts-rof>=1.0.0.*
) no library can be installed due to following error:
2024-06-27 10:33:47.580 [info] ERROR: Could not find a version that satisfies the requirement app-common-build-scripts-rof>=1.0.0 (from versions: 1.0.0.dev1245387, 1.0.0.dev1245394, 1.0.0.dev1246504, 1.0.0.dev1247852, 1.0.0.dev1247871, 1.0.0.dev1248017, 1.0.0.dev1248360, 1.0.0.dev1248390, 1.0.0.dev1248558, 1.0.0.dev1248840, 1.0.0.dev1248995, 1.0.0.dev1249001, 1.0.0.dev1249018, 1.0.0.dev1249108, 1.0.0.dev1249909, 1.0.0.dev1249915, 1.0.0.dev1249926, 1.0.0.dev1249935, 1.0.0.dev1252140, 1.0.0.dev1253905, 1.0.0.dev1254142, 1.0.0.dev1263909, 1.0.0.dev1269823, 1.0.0.dev1273561, 1.0.0.dev1274351, 1.0.0.dev1275885, 1.0.0.dev1276773, 1.0.0.dev1279151, 1.0.0.dev1279830, 1.0.0.dev1279833, 1.0.0.dev1280960, 1.0.0.dev1280981, 1.0.0.dev1281009, 1.0.0.dev1285647, 1.0.0.dev1286279, 1.0.0.dev1286293, 1.0.0.dev1286596, 1.0.0.dev1288541, 1.0.0.dev1288550, 1.0.0.dev1292646, 1.0.0.dev1292964, 1.0.0.dev1303592, 1.0.0.dev1303605, 1.0.0.dev1303658, 1.0.0.dev1303663, 1.0.0.dev1305005)
2024-06-27 10:33:47.581 [info] ERROR: No matching distribution found for app-common-build-scripts-rof>=1.0.0
It seems as if it can't choose one of the available versions (that's the reason, why I need .*
)
from pip.
Because none of those versions are larger than 1.0.0
(dev versions are considered prior/smaller than a stable version). I think the correct fix for you is to change the >=
to ==
. Or just remove the version constraint entirely since the package doesnโt need that in the first place.
from pip.
Unfortunately, also using of ==
instead of >=
do not work due to following error:
2024-06-27 12:56:15.922 [info] ERROR: Could not find a version that satisfies the requirement app-common-build-scripts-rof==1.0.0.* (from versions: 1.0.0.dev1245387, 1.0.0.dev1245394, 1.0.0.dev1246504, 1.0.0.dev1247852, 1.0.0.dev1247871, 1.0.0.dev1248017, 1.0.0.dev1248360, 1.0.0.dev1248390, 1.0.0.dev1248558, 1.0.0.dev1248840, 1.0.0.dev1248995, 1.0.0.dev1249001, 1.0.0.dev1249018, 1.0.0.dev1249108, 1.0.0.dev1249909, 1.0.0.dev1249915, 1.0.0.dev1249926, 1.0.0.dev1249935, 1.0.0.dev1252140, 1.0.0.dev1253905, 1.0.0.dev1254142, 1.0.0.dev1263909, 1.0.0.dev1269823, 1.0.0.dev1273561, 1.0.0.dev1274351, 1.0.0.dev1275885, 1.0.0.dev1276773, 1.0.0.dev1279151, 1.0.0.dev1279830, 1.0.0.dev1279833, 1.0.0.dev1280960, 1.0.0.dev1280981, 1.0.0.dev1281009, 1.0.0.dev1285647, 1.0.0.dev1286279, 1.0.0.dev1286293, 1.0.0.dev1286596, 1.0.0.dev1288541, 1.0.0.dev1288550, 1.0.0.dev1292646, 1.0.0.dev1292964, 1.0.0.dev1303592, 1.0.0.dev1303605, 1.0.0.dev1303658, 1.0.0.dev1303663, 1.0.0.dev1305005)
2024-06-27 12:56:15.922 [info] ERROR: No matching distribution found for app-common-build-scripts-rof==1.0.0.*
from pip.
If you want to use dev versions, you need --pre
.
Regardless, this is not a bug in pip, it's a deliberate change enforcing the long-established rules for version comparisons. Prior to this release of pip you were (without realising it) relying on a bug in pip which we've now fixed.
from pip.
Thanks @pfmoore!
After changing from ">=1.0.0.*" (app-common-build-scripts-rof>=1.0.0.*
) to ">=1.0.dev0" (app-common-build-scripts-rof>=1.0.dev0
) the corresponding latest libraries could be built again.
from pip.
Related Issues (20)
- Bugfix release PRs do not trigger test suite on CI HOT 1
- Pip memory usage for large cached install dominated by list of candiate pages HOT 1
- Missing git tag for 24.1.2 HOT 3
- Incorrect number of `"` in documentation
- Sharing a troubleshooting tool I made, simple barebone certifi.core (Lifeboat). HOT 5
- `pip._vendor.distlib.DistlibException: Unable to locate finder for 'pip._vendor.distlib'` raised when started by a separate process HOT 3
- Add tests for require-virtualenv HOT 1
- Please keep "pip search" function. HOT 1
- abi3audit dependencies HOT 2
- [24.1] name== hack for listing package versions no longer works HOT 10
- pip show does not recognise pyproject.yaml Licenses HOT 2
- proxy environment variable integration breaks other applications
- Upgrade to urllib3 to v2.x.x HOT 4
- Upgrade pip's version automatically HOT 2
- Feature Request: Auto-Resume Downloads in pip HOT 1
- Include metadata when listing packages to json and verbose enabled
- pip._vendor.distlib.DistlibException: Unable to locate finder for 'pip._vendor.distlib' HOT 3
- Exception from truststore when installing editable pip using not editable pip HOT 2
- speeding up pip wheels download and install HOT 1
- pip should not cache large files in /tmp or TMPDIR HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pip.