pip show xml shows Null
<p>I am using Python 2.7.12,tried</p>

<pre><code>import xml.etree # successfully imported,
</code></pre>

<p>tried</p>

<pre><code>import lxml.etree  # successfully imported.
</code></pre>

<p>when i tried to get the version of xml through </p>

<pre><code>pip show xml #Result is Null
pip show lxml show version 3.4.2
</code></pre>

<p>why it is not showing xml version</p>

<p>Because <a href="https://docs.python.org/2/library/xml.html#module-xml" rel="nofollow"><code>xml</code></a> is a built-in package in Python 2.7. Built-in modules and packages are tied to the Python version; they're usually only upgraded whenever you upgrade your Python version.</p>

<p><code>pip version</code> only works with 3rd-party packages that have been installed by <code>pip</code> or compatible tools.</p>

<p>Furthermore it seems that <code>pip</code> doesn't output any diagnostics at all, even when trying to force with <code>-v</code> (verbose) flag; it just exits with exit status 1 when given an invalid package name:</p>

<pre><code>% pip show -v asdfasdfasdfasfd; echo Exit status: $?
Exit status: 1
</code></pre>

python xml python-2.7 lxml