Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip install without progress bars

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 ?

like image 430
TJB Avatar asked Jan 24 '18 18:01

TJB


People also ask

Can I install pip without Sudo?

Install the downloaded package into a local directory : python get-pip.py --user This will install pip to your local directory (. local/bin) . Now you may navigate to this directory (cd . local/bin) and then use pip or better set your $PATH variable this directory to use pip anywhere : PATH=$PATH:~/.

Which progressbar does pip use?

pip , the package installer for Python, merged a code change to deprecate its former progress rendering method in favor of using rich, a Python library for rich text and formatting.

What can I use instead of pip install?

npm, Homebrew, Yarn, RequireJS, and Bower are the most popular alternatives and competitors to pip.


2 Answers

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.

like image 144
followben Avatar answered Oct 17 '22 14:10

followben


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)

like image 31
Mike T Avatar answered Oct 17 '22 14:10

Mike T