Forum Stats

  • 3,768,914 Users
  • 2,252,873 Discussions


unable to install cx_Oracle on OL 7.7

SPA09 Member Posts: 866 Gold Badge
edited Aug 27, 2019 12:05PM in Python

HI ,

I setup an OL 7.7 with Oracle RDBMS 18c.

DB is up and running.

I install python 3.6.8 and then Instantclient 18.5 base per yum.

Okay that works fine

python --version

Python 3.6.8

Now I would like to install the cx_Oracle Packages from the Docusite

I try all possibilties:

yum -y install python-cx_Oracle

not possible

yum -y install rh-python36-python-cx_Oracle

not possible

python -m pip install cx_Oracle<br/>

python -m pip install cx_Oracle

Traceback (most recent call last):

  File "/usr/lib64/python3.6/", line 183, in _run_module_as_main

    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)

  File "/usr/lib64/python3.6/", line 142, in _get_module_details

    return _get_module_details(pkg_main_name, error)

  File "/usr/lib64/python3.6/", line 109, in _get_module_details


  File "/root/py36env/lib64/python3.6/site-packages/pip/", line 42, in <module>

    from pip.utils import get_installed_distributions, get_prog

  File "/root/py36env/lib64/python3.6/site-packages/pip/utils/", line 27, in <module>

    from pip._vendor import pkg_resources

  File "/root/py36env/lib64/python3.6/site-packages/pip/_vendor/pkg_resources/", line 35, in <module>

    import plistlib

  File "/usr/lib64/python3.6/", line 65, in <module>

    from xml.parsers.expat import ParserCreate

  File "/usr/lib64/python3.6/xml/parsers/", line 4, in <module>

    from pyexpat import *

ImportError: /usr/lib64/python3.6/lib-dynload/ undefined symbol: XML_SetHashSalt

So I am at the end.

Who can help how to go on??

What the correct installation and Setup?


Best Answer