pipenv: pipenv couldn't display progress bar when it downloads package
I sometimes download big package such as pytorch.
When my network speed is slow, the progress of downloading will take long time to execute.
The output in the consolse just spin and don’t give me more feedback like download speed
or complete rate.
I have try add --verbose
but don’t work as my exception.
I could use pip to isntall and use pipenv to lock, but this solution not sound good.
I am wondering if pipenv have feature like $ pip install torch --progress-bar=on
and something like this:
Downloading https://files.pythonhosted.org/packages/69/43/380514bd9663f1bf708abeb359b8b48d3fabb1c8e95bb3427a980a064c57/torch-0.4.0-cp36-cp36m-manylinux1_x86_64.whl (484.0MB)
0% | | 563kB 248kB/s eta 0:32:28
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 12
- Comments: 15 (5 by maintainers)
It would be nice to have some kind of indication what pipenv is doing. Now I get output like this:
showing download progress/ speed would be perfect, but I wold be also happy if i could see spinner like in
npm
or anything that would indicate that something is happening. I’m using version 2018.11.26Thanks for your reply. I mean, sometimes when we want to install a big pypi package like pytorch (the pytorch’s .whl package size is 400+Mb), and one’s internet speed is slow (say 400Kb/s). In this situation, we need to wait about 17 minutes to finish downloading. During this time, the user cannot add options to pipenv to display package downloading speed or complete rate. The normal pipenv output to console during download pypi package is as follow:
What I want is something like wget and pip’s progress-bar function.
say command
$ wget https://pjreddie.com/media/files/yolov3.weights
the wget will output to console the speed, complete rate, remain time to complete as follow:And we can found the pip’s additional options in https://pip.pypa.io/en/stable/man/commands/install/?highlight=progress-bar#cmdoption-progress-bar when we use pip to download package, it will provide enough infomation for user about package downloading information. the pip’s output is something like wget:
So, my suggestion is that maybe pipenv could provide a option mentioned previously. The user will know how long he could leave alone pipenv’s installation and handle other things.
I realize that the pipenv finally call pip_install and delegate installation command to subprogress in https://github.com/pypa/pipenv/blob/master/pipenv/vendor/delegator.py#L152 Could we get more detail information output from subprocess and display it in parent progress’s console, for example https://stackoverflow.com/questions/18421757/live-output-from-subprocess-command ?