Skip to content

pip install djangorestframework-jsonapi fails #191

@mblayman

Description

@mblayman

Running pip install djangorestframework-jsonapi fails as documented on Read the Docs. I believe the reason is that pip fails to recognize all the available version numbers appropriately.

According to the setuptools docs, the - in the version number makes the posted version a "post-release" number. https://pythonhosted.org/setuptools/setuptools.html#specifying-your-project-s-version

Here is the output I saw when I tried to run the command:

$ pip install djangorestframework-jsonapi
Downloading/unpacking djangorestframework-jsonapi
  Could not find a version that satisfies the requirement djangorestframework-jsonapi \
(from versions: 2.0.0-alpha.1, 2.0.0-alpha.2, 2.0.0-alpha.3, 2.0.0-alpha, 2.0.0-beta.1)
Cleaning up...
No distributions matching the version for djangorestframework-jsonapi
Storing debug log for failure in /home/matt/.pip/pip.log

I don't know for sure, but my guess is that in the absence of an actual version (i.e., 2.0.0), pip gives up when it only finds post release versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions