cx_Oracle was obsoleted several years ago by python-oracledb. So the "correct" solution now is to use python -m pip install oracledb
. Also see https://medium.com/gitconnected/what-is-the-difference-between-cx-oracle-and-python-oracledb-d2887336f75a