My project includes some python codes and build with grunt.I write .travis.yml like:
language: node_js before_install: - pip inst
Instead of using sudo, pass the --user flag into pip (e.g., pip install --user django) to install the package in the home directory. This approach also works in Travis’ container-based infrastructure, which disallows sudo.
sudo
--user
pip
pip install --user django