My project includes some python codes and build with grunt.I write .travis.yml like:
language: node_js
before_install:
- pip inst
It's kind of solved.A sudo must be prepend to 'pip install'.
I guess 'npm install -g grunt-cli' does not need sudo because it's a 'node_js' project.Right?
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
.