My setup has:
- oracle-instantclient (downgraded from 12 to 11)
- Virtual Environment with Python + Django + cx_Oracle
pip install --upgrade --force-reinstall cx_Oracle
$ python -c "import cx_Oracle"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: libclntsh.so.12.1: cannot open shared object file: No such file or directory
[root@myserver]# which python
(myvirtualenv) [myuser@myserver]$ which python
sudo -u myuser ~/myvirtualenv/bin/python setup.py build install
error: could not create 'build/bdist.linux-x86_64/egg': Permission denied
The answer to your question (although you seem to have had another problem) is as follows: It depends on the module's structure. If its setup script calls the compiler, then yes it does. Because, you see, pip modules by default do not include compiled parts, it's up to the module author to provide them.