[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to install Python package from source on Windows

On Mon, May 15, 2017 at 7:43 PM, MRAB <python at mrabarnett.plus.com> wrote:
> On 2017-05-15 13:52, eryk sun wrote:
>> The wheel doesn't need a compiler. It has an ABI tag because it
>> already includes the compiled extension module.
> I used pip to install into Python 3.4 (32-bit) from PyPI. It fetched
> "recordclass-0.4.3.tar.gz" and compiled it instead of fetching
> "recordclass-0.4.3-cp34-cp34m-win32.whl".

I suspect you're using pip version 7.1. Update to version 9:

    python -m pip install --upgrade pip

> Come to think of it, what's that "cp34m" in the name? I don't have that in
> the regex module's wheels, I have "none" instead.

"recordclass-0.4.3-cp34-cp34m-win32" is broken down as follows [1]:

    Distribution: recordclass
    Version: 0.4.3
    Python: cp34 [CPython 3.4]
    ABI: cp34m [CPython 3.4 w/ PyMalloc]
    Platform: win32 [32-bit Windows]

Extension modules have to be built for a particular implementation of
Python, ABI, and platform.

[1]: https://www.python.org/dev/peps/pep-0491/#file-format