How to install Python package from source on Windows
MRAB
python at mrabarnett.plus.com
Mon May 15 15:43:46 EDT 2017
On 2017-05-15 13:52, eryk sun wrote:
> On Mon, May 15, 2017 at 6:37 AM, Deborah Swanson
> <python at deborahswanson.net> wrote:
>>
>> Where did you find recordclass-0.4.3-cp34-cp34m-win32.whl? There
>> weren't any win32 builds on https://pypi.python.org/pypi/recordclass.
>
> It's in the middle of the file list:
>
> recordclass-0.4.3-cp34-cp34m-win32.whl (md5) Python Wheel cp34
> 2017-04-17 17KB
>
> Maybe you're looking at a cached page in your browser? But that
> doesn't explain why pip doesn't see it.
>
>> Maybe I can find an earlier 3 build that won't demand Visual C++.
>
> 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".
Why?
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.
Rename "recordclass-0.4.3-cp34-cp34m-win32.whl" to
"recordclass-0.4.3-cp34-name-win32.whl".
With the new name, it installs and seems to work!
More information about the Python-list
mailing list