Reputation: 3836
In my Django application I have a circle.yml file that runs 'pip install -r requirements/base.txt'. When I push up code, and check the CircleCI logs when there is an error, its hard to get to because there are so many dependencies and as of pip6 they started showing progress bars for the installations. Because of that it get busy pretty quick. I read on pip's github page that a few people were requesting a flag to the install command to remove the progress bars, but continue to show everything else like exceptions. something like
pip install --no-progress-bar foo
https://github.com/pypa/pip/pull/4194. It doesn't look like this has been released yet though. Is there any way to currently do this without using --no-cache-dir ?
Upvotes: 19
Views: 13348
Reputation: 43612
Use pip config to turn these off by default:
pip config --user set global.progress_bar off
(perhaps remove --user
for admins, or use replace with --venv
for virtualenv)
Upvotes: 8
Reputation: 9197
That PR was merged and is available on the latest stable build (pip 10.0.1 at the time of writing). Just do:
pip install foo --progress-bar off
Other args are available. See the pip install docs.
Upvotes: 30