title: Python Module Error on Linux
body: <p>I am using python 2.7 on Linux Mint 16. I am facing an error, if I run my IDE (tried it on Spyder and Pycharm) from a program launcher (eg. from the prompt at Alt F2 or an icon shortcut on my desktop) the modules do not load and I get the following error</p>
  
  <pre>
  File "/usr/local/lib/python2.7/dist-packages/gurobipy/__init__.py", line 1, in 
      from .gurobipy import *
  ImportError: libgurobi56.so: cannot open shared object file: No such file or directory
  </pre>
  
  <p>However, if I run the program from the command line the modules load correctly and the program runs fine. I have only one installation each of the IDEs. The sys.path output from the two instances are as follows:</p>
  
  <p>sys.path output for Pycharm run from  shortcut:</p>
  
  <pre>
  /home/XXXXXX/bin/pycharm-community-3.1.3/helpers/pydev', '/usr/local/lib/python2.7/dist-packages/pip-1.5.5-py2.7.egg', '/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', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/home/XXXXXX/PycharmProjects/untitled8'] 
  </pre>
  
  <p>sys.path oyutput for Pycharm run from command line:</p>
  
  <pre>
  /home/XXXXXX/bin/pycharm-community-3.1.3/helpers/pydev', '/usr/local/lib/python2.7/dist-packages/pip-1.5.5-py2.7.egg', '/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', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/home/XXXXXX/PycharmProjects/untitled8']
  </pre>
  
  <p>The package gurobipy is in /usr/lib/python2.7/dist-packages</p>
  
  <p>Installation procedure followed for gurobi package:</p>
  
  <p>1) Untarred the download to /opt/gurobi562/linux64</p>
  
  <p>2) Added following lines to .bashrc</p>
  
  <pre><code>export GUROBI_HOME="/opt/gurobi562/linux64"
  
  export PATH="${PATH}:${GUROBI_HOME}/bin"
  
  export LD_LIBRARY_PATH="${GUROBI_HOME}/lib"
  </code></pre>
  
  <p>3) In /opt/gurobi562/linux64 ran python setup.py install this created the gurobipy folder in /usr/local/lib/python2.7</p>
  
  <p>4) Added the following line to .bashrc </p>
  
  <pre><code>export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/python2.7/dist-   packages/gurobipy"
  </code></pre>