Search code examples
pip

Should I use PIPWIN or PIP for installing a library?


I was wondering in which scenarios I can use pipwin instead of pip? I am aware that pip is the standard.

From pipwin it states

pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke.

Does it offer any advantage if we are sharing our programs after packaging into a EXE with others - using windows?


Solution

  • pip installs from PyPI. pipwin installs from Christoph Gohlke's Unofficial Windows Binaries for Python Extension Packages. Quite often there are more and better compiled wheels at the Christoph's Unofficial site.

    Compare, for example, PyAudio (one of the most problematic packages, see how many question there are). At PyPI there're currently wheels for Python 2.7 and 3.4-3.6. At the Christoph's Unofficial site there are wheels for Python 2.7 and 3.4-3.10.

    The bottom line is: always consider Christoph's Unofficial site and pipwin when pip install failed to install a package for Windows.