Couldn't import dot_parser, loading of dot files will not be possible
<p><strong>Before marking it duplicate, please read it fully.</strong></p>

<p>I am trying to use pydot in my script which depends on pyparsing module. But the module I have is pyparsing 2.0.1 which came with the MAC installation. This needs to be downgraded to 1.5.7 to fix this error - "Couldn't import dot_parser, loading of dot files will not be possible" as per <a href="https://stackoverflow.com/questions/15951748/pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will">this answer</a>, but when I tried to uninstall my existing pyparsing module, I am getting this error - </p>

<pre><code>pip uninstall pyparsing
DEPRECATION: Uninstalling a distutils installed project (pyparsing) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling pyparsing-2.0.1:
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pyparsing-2.0.1-py2.7.egg-info
Proceed (y/n)?
</code></pre>

<p>If I give yes, as expected, this is throwing me Operation not permitted error due to the System Integrity Protection in Mac OS X. So I am not able to proceed with this. </p>

<p>I tried to see my module path,</p>

<pre><code>import site; site.getsitepackages()
['/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
 '/Library/Python/2.7/site-packages']
</code></pre>

<p>I can see pyparsing 2.0.1 under my site-packages as well, Is there a way to uninstall that alone without modifying the pyparsing under system library?</p>