title: Unable to install pillow 6.2.1 in conda
body: <p>After upgrading <code>pytorch</code> / <code>torch-vision</code> the following error occurs:</p>
  <pre><code>python -c &quot;import torch ; import torchvision as tv; print(torch.__version__, tv.__version__)
  &gt; &quot;
  Traceback (most recent call last):
    File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/home/pointr/anaconda3/lib/python3.7/site-packages/torchvision/__init__.py&quot;, line 4, in &lt;module&gt;
      from torchvision import datasets
    File &quot;/home/pointr/anaconda3/lib/python3.7/site-packages/torchvision/datasets/__init__.py&quot;, line 9, in &lt;module&gt;
      from .fakedata import FakeData
    File &quot;/home/pointr/anaconda3/lib/python3.7/site-packages/torchvision/datasets/fakedata.py&quot;, line 3, in &lt;module&gt;
      from .. import transforms
    File &quot;/home/pointr/anaconda3/lib/python3.7/site-packages/torchvision/transforms/__init__.py&quot;, line 1, in &lt;module&gt;
      from .transforms import *
    File &quot;/home/pointr/anaconda3/lib/python3.7/site-packages/torchvision/transforms/transforms.py&quot;, line 17, in &lt;module&gt;
      from . import functional as F
    File &quot;/home/pointr/anaconda3/lib/python3.7/site-packages/torchvision/transforms/functional.py&quot;, line 5, in &lt;module&gt;
      from PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION
  ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (/home/pointr/anaconda3/lib/python3.7/site-packages/PIL/__init__.py)
  </code></pre>
  <p>This has been noted as due to an incompatibility between <code>conda</code> and <code>pytorch 7.0.0</code>  <a href="https://github.com/pytorch/vision/issues/1712" rel="nofollow noreferrer">https://github.com/pytorch/vision/issues/1712</a> . So  I need to downgrade to <code>pillow 6.2.1</code>:</p>
  <p>The command posted to do this is:  <code>conda install pillow=6.2.1 -y</code></p>
  <p>However that is failing:</p>
  <pre><code> (current_repodata.json): done
  Solving environment: failed with initial frozen solve. Retrying with flexible solve.
  Collecting package metadata (repodata.json): done
  Solving environment: failed with initial frozen solve. Retrying with flexible solve.
  Solving environment: | 
  </code></pre>
  <p>That is hanging.  So now what ?   The workaround needs itself a workaround ..  Is <code>conda</code> broken for <code>torchvision</code> now?   The primary reason I am using <code>conda</code> in the first place is <code>torch</code> / <code>torchvision</code> ..</p>
  <p><strong>Update</strong> Conda tried to <code>resolve conflicts</code>. After 20 minutes of this it was 13% done. Ridiculous. This is a 2020 core i7 mini-tower. No sane program takes more than low double digits seconds to resolve dependencies.  I finally killed it.  I am going to try the suggestion to do directly from <code>pip</code>:</p>
  <pre><code>pip install Pillow==6.2.1 
  </code></pre>
  <p>OK - that is <em>hanging</em> ..  I am going to uninstall <code>pillow</code> and reinstall it with that version.</p>
  <p><strong>Another update</strong>  @erip has recommended <code>conda install -c conda-forge pillow=6.2.1</code> - so here we go:</p>
  <pre><code>conda install -c conda-forge pillow=6.2.1
  Collecting package metadata (current_repodata.json): done
  Solving environment: failed with initial frozen solve. Retrying with flexible solve.
  Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
  Collecting package metadata (repodata.json): done
  Solving environment: \
  </code></pre>
  <p>I will let the dust settle on that one but looking quite unlikely.</p>