How to install Python package from source on Windows

MRAB python at mrabarnett.plus.com
Mon May 15 19:24:59 EDT 2017


On 2017-05-15 21:40, eryk sun wrote:
> 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
>
I hadn't updated the pip for CPython 3.4 from the version it was 
originally shipped with. Once upgraded, the wheel installed from PyPI 
without a problem.




More information about the Python-list mailing list