I am trying install the python API by same way and facing the same issue.
Downloading/unpacking python-owasp-zap-v2.4
Downloading python-owasp-zap-v2.4-0.0.8.tar.gz
Running setup.py (path:/tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4/setup.py) egg_info for package python-owasp-zap-v2.4
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4/setup.py", line 12
print "You must have setuptools installed to use setup.py. Exiting..."
^
SyntaxError: Missing parentheses in call to 'print'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4/setup.py", line 12
print "You must have setuptools installed to use setup.py. Exiting..."
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-l7azoeh2/python-owasp-zap-v2.4
Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c pip3 install python-owasp-zap-v2.4' returned a non-zero code: 1