Quiet output from pip via requirements file?

kungphu picture kungphu · Jan 31, 2013 · Viewed 8.8k times · Source

pip has a -q/--quiet flag that works ideally from the command line. I'm using an automated deployment process (Amazon Elastic Beanstalk), and the tools use pip to install from a requirements file.

Unfortunately, pip is generating non-error output that's causing EB to abort due to its logger being unable to handle non-ASCII output.

Since I can't apply the quiet flag to the pip command directly (it's run automatically), is there a per-line flag I can set in my requirements file or an environment variable that would suppress pip's output?

Answer

kungphu picture kungphu · Feb 4, 2013

After more digging, this is a pending feature request for pip in github:

https://github.com/pypa/pip/issues/271

Temporary workaround: Using a separate bash script to invoke pip per-line until this is implemented, published, and available on Elastic Beanstalk.