title: How do I import fernet?
body: <p>I am relatively new to python and am following this tutorial on encrypting strings and files in python: <a href="https://www.youtube.com/watch?v=H8t4DJ3Tdrg" rel="nofollow noreferrer">https://www.youtube.com/watch?v=H8t4DJ3Tdrg</a></p>
  
  <p>I have downloaded pip, but when I try to generate a key, using this code:</p>
  
  <pre><code>from cryptography.fernet import fernet
  
  key - Fernet.generate_key()
  print (key)
  </code></pre>
  
  <p>I get the following error in terminal: </p>
  
  <pre><code>File "randomkey.py", line 1, in &lt;module&gt;
      from cryptography.fernet import fernet
  ImportError: cannot import name fernet
  </code></pre>
  
  <p>How do I fix this? Thanks</p>