How to install cx_Oracle package in Anaconda 3 for use with python 3.5

I need to connect to an Oracle database in Python Anaconda3-2.5.0-Windows-x86_64. Installing the cx_Oracle module:

conda install -c https://conda.anaconda.org/anaconda cx_oracle

does not work with the following output (trimmed):

Hint: the following packages conflict with each other:
  - cx_oracle
  - python 3.5*

So, I tried installing the package for Python 3.5 on 'cx_Oracle-5.2.1-11g.win-amd64-py3.5.exe' from https://pypi.python.org/pypi/cx_Oracle/ It seems to work (how that). Even the conda list command prints a line:

cx-oracle                 5.2.1                     <pip>

But when I introduce import cx_Oracle;in Python, then

ImportError: DLL load failed: Uvedený modul nebyl nalezen.

appears. A rough translation of the last localized part of "Modul not found."

How to install cx_Oracle module? Or is there another way to connect to an Oracle database?

+4
4

, windows python 3.5. anaconda , , anaconda3 anaconda python3. , , , cx_oracle pip.

Windows cmd pip install cx_Oracle, . python2, python3 -m pip install cx_Oracle. .

+3

easy_install.

0

A simplified way to download is to download down from the link below https://pypi.python.org/pypi/cx_Oracle/

and install it on Windows. It worked like a charm for me.

0
source

In the Anaconda navigator, select “Environments,” then right, change the filter to “All.” Now you can request "cx_oracle", select it and below, select "Apply". Upon completion you should be able to

import oracle
0
source

Source: https://habr.com/ru/post/1629568/


All Articles