How to ignore python module in ~/.local/lib/python2.7/site-packages?
<p>I have a python package <code>dateutil</code> in the <code>~/.local/lib/python2.7/site-packages</code> directory as well as one in <code>/usr/lib/python2.7/dist-packages/dateutil</code>. When I try to run an executable from <a href="https://github.com/ethz-asl/kalibr/wiki/installation" rel="nofollow noreferrer">kalibr</a> (a camera calibration tool, I downloaded the CDE), <code>rrule.py</code> from the <code>dateutil</code> package in <code>~/.local/lib/python2.7/site-packages</code> throws an error "ImportError: No module named fractions". I can get kalibr running, by removing said <code>dateutil</code> package (s.t. it uses the one in <code>/usr/lib/python2.7/dist-packages/dateutil</code>) but I fear that this will have some implications on other projects.</p>

<p>So I figured that the basic problem here is that python prefers the <code>dateutil</code> package in <code>~/.local/lib/python2.7/site-packages</code> over the one in <code>/usr/lib/python2.7/dist-packages/dateutil</code>.</p>

<p>How can I make python prefer the latter one?</p>

<p>(I am using Ubuntu 16.04)</p>