title: WARNING: The following packages were previously imported in this runtime: [PIL] You must restart the runtime in order to use newly installed versions
body: <p>This is a question from an absolute beginner of programing.</p>
  <p>I tried the following codes on Google Colaboratory, and received the warning as written on the title of this post.</p>
  <p>I restarted the runtime (which I believe worked successfully), but then when I retried the codes (by hitting 'run' button), I got the same warning.</p>
  <p>Do you have any suggestion on how to fix this?</p>
  <p>Thank you in advance.</p>
  <pre><code>!pip install torch torchvision
  import torch
  print('torch vision: ', torch.__version__)
  
  !pip uninstall -y Pillow
  !pip install Pillow==5.3.0
  import PIL
  print('pillow version: ', PIL.PILLOW_VERSION)
  like so
  </code></pre>