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

3.5k Views Asked by At

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?

3

There are 3 best solutions below

0
On BEST ANSWER

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.

0
On

PyJWT 1.7.1 was released at Dec 7, 2018.

Extra crypto was added to PyJWT on Oct 22, 2019 hence it's available in PyJWT 2.0+.

To use pyjwt[crypto] you need to install later version. Currently the latest is PyJWT 2.0.1.

1
On

You can install pyjwt with the cryptographic Dependency with:

pip install pyjwt[crypto]

As seen in pyjwt's documentation

You can also separately install the required library with as seen on pyca/cryptography's documentation:

pip install cryptography