Tag Archives: pip

Python – Install cx_Oracle

I want to query data from an Oracle database from a Python program and this could be done by using the cx_Oracle Python package. This package required some Oracle package pre-requisites so it cannot be installed thru pip directly.

The following steps are done on a Centos 7 machine with Python 2.7.

1. Download and install the following from Oracle.

  • oracle-instantclient11.2-basic
  • oracle-instantclient11.2-devel
  • oracle-instantclient11.2-sqlplus


2. The installed client should be located at /usr/lib/oracle/11.2/client64.
Continue reading Python – Install cx_Oracle

pip – Check avaiable Python package version

It’s quite common to check the available versions of a Python package before installing it. The yolk3k package is a very convenient command line tool for querying PyPI and Python packages. yolk3k is a fork of the original yolk and it adds Python 3 support while maintaining Python 2 support.


1. Install the yolk3k package.

pip install yolk3k

Continue reading pip – Check avaiable Python package version