title: Not able to import python modules unless root user
body: <p>I am unable to import python modules in the terminal when I open python from a normal user(although, its working for root user) :<br>
  The error I get is this : </p>
  
  <pre><code>import numpy
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 180, in &lt;module&gt;
      from . import add_newdocs
    File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in &lt;module&gt;
      from numpy.lib import add_newdoc
    File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 8, in &lt;module&gt;
      from .type_check import *
    File "/usr/lib/python2.7/dist-packages/numpy/lib/type_check.py", line 11, in &lt;module&gt;
      import numpy.core.numeric as _nx
    File "/usr/lib/python2.7/dist-packages/numpy/core/__init__.py", line 58, in &lt;module&gt;
      from numpy.testing.nosetester import _numpy_tester
    File "/usr/lib/python2.7/dist-packages/numpy/testing/__init__.py", line 12, in &lt;module&gt;
      from . import decorators as dec
    File "/usr/lib/python2.7/dist-packages/numpy/testing/decorators.py", line 21, in &lt;module&gt;
      from .utils import SkipTest
    File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 15, in &lt;module&gt;
      from tempfile import mkdtemp, mkstemp
    File "/usr/lib/python2.7/tempfile.py", line 32, in &lt;module&gt;
      import io as _io
    File "/home/praneeth/computervision/code/caffe-master/distribute/python/caffe/io.py", line 2, in &lt;module&gt;
      import skimage.io
    File "/home/praneeth/scikit-image/skimage/__init__.py", line 158, in &lt;module&gt;
      from .util.dtype import *
    File "/home/praneeth/scikit-image/skimage/util/__init__.py", line 1, in &lt;module&gt;
      from .dtype import (img_as_float, img_as_int, img_as_uint, img_as_ubyte,
    File "/home/praneeth/scikit-image/skimage/util/dtype.py", line 8, in &lt;module&gt;
      dtype_range = {np.bool_: (False, True),
  AttributeError: 'module' object has no attribute 'bool_'
  </code></pre>
  
  <p>Its the same with all modules not just numpy. I have tried the solutions suggested in the other similar questions, but they haven't worked out. For eg : 
  <a href="https://stackoverflow.com/questions/14295680/cannot-import-a-python-module-that-is-definitely-installed-mechanize">Cannot import a python module that is definitely installed (mechanize)</a></p>
  
  <p>The output of the command <code>$PYTHONPATH</code> is : </p>
  
  <blockquote>
    <p>/home/praneeth/computervision/code/caffe-master/distribute/python/caffe:/home/praneeth/computervision/code/caffe-master/python/caffe:/usr/lib/python2.7/dist-packages/</p>
  </blockquote>
  
  <p>Also, my system path without root permission is : </p>
  
  <pre><code>import sys
  sys.path
      ['', '/home/praneeth/computervision/code/caffe-master/distribute/python/caffe', '/home/praneeth/computervision/code/caffe-master/python/caffe', '/usr/lib/python2.7/dist-packages', '/home/praneeth', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/home/praneeth/scikit-image', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0']
  </code></pre>
  
  <p><strong>Edit1:</strong>
  sys.path with root user is found to be same as that of without root user expect those caffe installation paths. Here is the result with root user:</p>
  
  <pre><code>sudo python
  Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
  [GCC 5.4.0 20160609] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.path
  ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/home/praneeth/scikit-image', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat']
  </code></pre>