This page is based on Install node-oracledb on OS X 10.11 El Capitan and modified for Python.
You need to install the command line developer tools or the Xcode. (The latter includes the former.)
Run cc --version
in a terminal to check whether they are installed.