7

To my knowledge, the naming rules of python wheel is

package_version-related_python_version-none-32bits_or_64bits.whl

For example,

numpy‑1.11.2+mkl‑cp35‑none‑win_amd64.whl

is numpy of version 1.11.2 for Python3.5 running in windows 64 bits platform. Reference

Currently i have noticed the naming of Python packages in Unofficial Windows Binaries for Python Extension Packages use 'cpxxm' to replace 'none'. For example,

numpy‑1.11.2+mkl‑cp35‑cp35m‑win_amd64.whl

When installing these packages, pip will return version unmatch error. When i change 'cp35m' to 'none', it becomes normal.

So, what is the meaning of 'cp2xm' 'cp3xm' and why suddenly all the package replace 'none' with 'cpxxm'?

Community
  • 1
  • 1
zhi lim
  • 109
  • 5
  • 1
    `m` means version with different memory manager. There is information somewhere in documentation. On Linux I have automatically installed files `python3` and `python3m` so I can choose which version run. – furas Nov 16 '16 at 07:03
  • @furas How can i change Python3 to Python3m in windows? – zhi lim Nov 16 '16 at 08:21
  • look in folder with Python, maybe you have both files installed `python3` and `python3m` or something similar like `py3.exe`, `py3m.exe`. Then you have to use `py3m.exe script.py` to run script with this version. I don't use Windows so I can't help it. – furas Nov 16 '16 at 16:34
  • It is said that PyMalloc is not yet implemented on windows. But there is some packages for py3m on windows. That really confuses me. – zhi lim Nov 19 '16 at 03:00

1 Answers1

6

From PEP 3149 the m indicates pymalloc is in use as the memory allocator

The second component of the wheel name is the "abi" component. This was always none in wheels produced by older versions of wheel <26 as abi detection wasn't yet implemented.

In newer versions of wheel, the abi is populated. You need a sufficiently new version of pip in order to install these wheels.

anthony sottile
  • 61,815
  • 15
  • 148
  • 207