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:
That means you need to use python 3.11 to install this.
You can check which version of Python that pip is using by running:
pip --version
