How to determine the size of a non-installed python package?
pip, python
Solution
This is not possible using `pip` as far as I know. But if the package is hosted on PyPI you can append `/json` to the URL to view more details, including file size.
For example, visit https://pypi.python.org/pypi/pip/json and have a look at the entries in the `releases` key. The `size` of each release tells you how big the download would be.
Note that this tells you the download size, not the size after installing (as a package may request additional dependencies for installation, after decompressing the archives, and so on). So your question may be difficult to answer, prior to installation.
Problem
I don't have much space left, and I am tempted to install python libraries. I would like to know how big a python library is before installing is (just to know how much extra space to request if I don't have enough). Is there a way to do that, e.g. using `pip`?