@@ -158,7 +158,9 @@ To use python-oracledb, you need:
158158
159159- The Python cryptography package. This package is automatically installed as a
160160 dependency of python-oracledb. It is strongly recommended that you keep the
161- cryptography package up to date whenever new versions are released.
161+ cryptography package up to date whenever new versions are released. If the
162+ cryptography package is not available, you can still install python-oracledb
163+ but can only use it in Thick mode, see :ref: `nocrypto `.
162164
163165- Optionally, Oracle Client libraries can be installed to enable some additional
164166 advanced functionality. These can be from the free `Oracle Instant Client
@@ -745,6 +747,29 @@ offline computer and install it with::
745747Then follow the general python-oracledb platform installation instructions
746748to install Oracle client libraries.
747749
750+ .. _nocrypto :
751+
752+ Installing python-oracledb without the Cryptography Package
753+ ===========================================================
754+
755+ If the Python cryptography package is not available, python-oracledb can still
756+ be installed but can only be used in Thick mode.
757+
758+ To install without the cryptography package, use pip's ``--no-deps `` option,
759+ for example:
760+
761+ .. code-block :: python
762+
763+ python - m pip install oracledb -- no- deps
764+
765+ Oracle Client libraries must then be installed. See previous sections.
766+
767+ To use python-oracledb in Thick mode you must call
768+ :meth: `oracledb.init_oracle_client() ` in your application, see
769+ :ref: `enablingthick `. Without this, your application will get the error
770+ ``DPY-3016: python-oracledb thin mode cannot be used because the cryptography
771+ package is not installed ``.
772+
748773Installing from Source Code
749774===========================
750775
@@ -803,7 +828,7 @@ used to install into a local directory::
803828 python setup.py install --user
804829
805830Troubleshooting
806- ================
831+ ===============
807832
808833If installation fails:
809834
0 commit comments