I have a requirement file, and try to install it by:
pip install -r requirement .txt
It fails on a specific package with this error: ERROR: Could not find a version that satisfies the requirement
I know the package does exist, in the correct index, so I guess it points on a version conflict.
However, I don’t know how can I analyze it. I tried with pipdeptree, but it lisst the deps for the already installed packages, not for the problematic package.
ERROR: Could not find a version that satisfies the requirement <package_name> (from versions: none)
ERROR: No matching distribution found for <package_name>
Sorry to say, without knowing which package it is or what else is currently happening in your Python environment, it will be difficult to impossible to offer any meaningful help.
It’s because you specify --only-binary=:all:, but at least one of the packages in your requirements.txt, specifically splunk-sdk, does not provide a binary.
Try removing --only-binary=:all: from your command.
You are using Python 2.7, which is 15 years old and went out of support five years ago. The Python ecosystem has long since moved on; you cannot expect to be able to pip install anything to such ancient software.
Go to pypi.org and lookup the package name that causes the error. Next, check what it says under “Meta” and “Requires”. For example, in the bpy package we see this: