2

I want to connect to Oracle database with Django. It requires cx_Oracle module. When I tried to install cx_Oracle, it required Oracle to be install on current server.

[root@localhost cx_Oracle-5.2]# /opt/python2.7/bin/python setup.py install
Traceback (most recent call last):
  File "setup.py", line 170, in <module>
    raise DistutilsSetupError("cannot locate an Oracle software " \
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation

But actually I don't need Oracle on this server, my Oracle server is remote. How can I solve this problem?

1
  • 1
    Sure you need just oracle client libraries. Not all software, just client software. Commented Jan 18, 2016 at 16:41

1 Answer 1

6

You need to install the Oracle Instant Client.

cx_Oracle uses this to make the connection to your database.

Sign up to request clarification or add additional context in comments.

1 Comment

For Linux (my requirement) you can download it here. An oracle account/login (free) is required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.