--- a/test/test.py
+++ b/test/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 from __future__ import absolute_import, division, print_function, unicode_literals
@@ -1273,7 +1273,7 @@
             self.sh.run_command('export PATH=$PATH:./bin')
             self.sh.run_command('export PYTHONPATH=.:$PYTHONPATH')
             test_package = os.path.join(TEST_DIR, 'test_package')
-            command = 'pip install {} --target .'.format(test_package)
+            command = 'pip3 install {} --target .'.format(test_package)
             if not wheel:
                 command += ' --no-binary :all:'
                 if sys.platform == 'darwin':
