diff --git a/.travis.yml b/.travis.yml
index 9cc4a4d15c2af6d72e58353010fba036958facf7..4edb53f9d903e06816e0453a19e14cc0167ac23a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,7 +21,7 @@ before_install:
 - if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC; fi
 - pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel sphinx nose==1.3.0 jinja2==2.6 cpp-coveralls pygments==1.6
 install:
-- SETUPTOOLS_VERSION=`python -c "import setuptools; print setuptools.version.__version__"`
+- SETUPTOOLS_VERSION=`python -c "import setuptools; print(setuptools.version.__version__)"`
 - python bootstrap-buildout.py --setuptools-version $SETUPTOOLS_VERSION
 - CFLAGS=-coverage ./bin/buildout
 script: