Share via


How to set the pointer of cx_Oracle to python with visual studio community 2015

Question

Thursday, April 21, 2016 7:23 AM

Error loading cx_Oracle module: No module named 'cx_Oracle'

This error messages shows when release or debug of solution explore is run, but executing command on cmd of Windows, python maage.py runserver works. cx_Oracle has installed, it would be any path or pointer for Oracle_cx missing to Visual Studio.

I'm looking for any setting for this, but cannot. Did I miss any configuration for debug/release of  Oracle + python + Django on Visual studio community 2015 ?

Katey

All replies (1)

Friday, April 22, 2016 1:36 AM âś…Answered

Hi Katey,

Thanks for your post.

Please make sure you have:

  1. oracle instant client
  2. cx_Oracle binary( from SourceForge )
  3. Python IMPORTANT: Make sure they are ALL either 64-bit or 32-bit, mixing is gonna cause problems

In addition, I found a similar thread for your reference:

http://stackoverflow.com/questions/9908055/python-import-cx-oracle-importerror-no-module-named-cx-oracle-error-is-thown

Best Regards,

Lake Xiao