質問

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?

役に立ちましたか?

解決

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.

他のヒント

Pip offers the --quiet / -q option to silence output. Example:

pip install -q -r requirements.txt

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top