How to upgrade disutils package PyYAML? : <p>I was trying to install <strong>chatterbot</strong> which has a dependency on <strong>PyYAML=3.12</strong>. In my Ubuntu machine installed <strong>PyYAML</strong> version is 3.11. So I used the following command to upgrade <strong>PyYAML</strong>:</p>

<p><code>sudo -H pip3 install --upgrade PyYAML</code></p>

<p>But it gives the following error:</p>

<blockquote>
  <p>Cannot uninstall 'PyYAML'. It is a distutils installed project and
  thus we cannot accurately determine which files belong to it which
  would lead to only a partial uninstall.</p>
</blockquote>

<p>My <strong>pip3</strong> version is 10.0.0.</p>

<p>How to resolve this?</p>
