I am using Ubuntu 14.04. I have installed a python module called PyBluez. When I compile and install the module from source code, the output is installed in the folder /usr/local/lib/python2.7/dist-packages/bluetooth.

When I install using "apt-get", the files are installed in the folder /usr/lib/python2.7/dist-packages.

When I run python code using PyBluez module, which packages will run first? The one in /usr/local/... or /usrlib/... ? How do I check?

What if I want /usr/local/... to run first? How do I make that happen?


Open a python shell and type:

import sys

/usr/local should normally be first, so it will be searched first.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.