title: Generate JWT in Google cloud function - python
body: <p>I wrote a script and uploaded it to GCFunctions. 
  Now, one of my functions is using <strong>PyJWT library</strong> in order to generate JWT for GCP API calls,
  the problem is that I keep getting errors every time I run the function.
  When I added pyjwt to 'requirements.txt' I got the error: <strong>'Algorithm RS256 could not be found',</strong>
  then I tried to add cryptography (the encrypting library that pyjwt uses), and also tried pycrypto (for RS256 registering) but still nothing.
  I'd be grateful for some help here! even suggestions for other ways of authentication methods in GCP API calls would be great!
  <strong>Thanks in advance!!</strong></p>
  
  <p>Edit: BTW- the function is running on Python3.7</p>
  
  <p>Here is the content of my requirements.txt file (dependencies)</p>
  
  <pre><code># Function dependencies, for example:
  # package&gt;=version
  requests==2.21.0
  pycrypto
  pyjwt==1.7.1
  pyjwt[crypto]
  boto3==1.11.13
  </code></pre>
  
  <p>And this is the exception I get while trying to add <strong>pyjwt[crypto]</strong> and run the script once again:
  <a href="https://i.stack.imgur.com/HVNXa.png" rel="nofollow noreferrer">enter image description here</a></p>