Search code examples
python-3.xdockerdjango-rest-frameworkpippyjwt

WARNING: pyjwt 1.1.0 does not provide the extra 'crypto'


I am getting the error

WARNING: pyjwt 1.1.0 does not provide the extra 'crypto'

for Docker command

RUN pip install --no-cache /wheels/*

while installing PyJWT==1.7.1, Is there any solution to fix this warning?


Solution

  • In order to fix the following warning

    WARNING: You are using pip version 20.1.1; however, version 21.0 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

    I added the following code to Dockerfile

    # upgrade pip
    RUN pip install --upgrade pip
    

    I just reverted adding this and it now works correctly, although I still have the pip version warning.