Skip to content

Windows wheel package (.whl) on Pypi #5479

Closed

Description

@mcarans

Please make Windows wheel packages and put them on Pypi.

Currently it is possible to download Windows wheel packages for numpy here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

It would be great if the wheels were directly available on the Pypi server https://pypi.python.org/pypi/ so that they can be installed with pip.

Activity

  1. matthew-brett commented on Jan 22, 2015

    @matthew-brett
    Contributor

    Well said - and indeed there is a lot of work by @carlkl going on behind the scenes to make this happen. I believe we are nearly there now - @carlkl - when will you go public, do you think?

  2. njsmith commented on Jan 22, 2015

    @njsmith
    Member

    For context: the reason this isn't trivial is that the binaries you linked
    to depend on Intel's proprietary runtime and math library, which
    complicates redistributing them.

  3. carlkl commented on Jan 22, 2015

    @carlkl
    Member

    I deployed the recent OpenBLAS based numpy and scipy wheels on binstar. You can install them with:

    pip install -i https://pypi.binstar.org/carlkl/simple numpy
    pip install -i https://pypi.binstar.org/carlkl/simple scipy

    This works for python-2.7 and for python-3.4. The wheels are marked as 'experimental'. Feedback is welcome.

  4. njsmith commented on Jan 22, 2015

    @njsmith
    Member

    If you want widespread testing then you should send this to the list :-)

    On Thu, Jan 22, 2015 at 8:54 PM, carlkl [email protected] wrote:

    I deployed the recent OpenBLAS based numpy and scipy wheels on binstar.
    You can install them with:

    pip install -i https://pypi.binstar.org/carlkl/simple numpy
    pip install -i https://pypi.binstar.org/carlkl/simple scipy

    This works for python-2.7 and for python-3.4. The wheels are marked as
    'experimental'. Feedback is welcome.

    —
    Reply to this email directly or view it on GitHub
    #5479 (comment).

    Nathaniel J. Smith
    Postdoctoral researcher - Informatics - University of Edinburgh
    http://vorpus.org

  5. juliantaylor commented on Jan 22, 2015

    @juliantaylor
    Contributor

    fwiw I personally would like to change the size of the default integer in win64 before we actually provide official binaries, though there was some resistance too it when I last proposed it, also possibly with anaconda and other third party binaries its probably already too late :(

    also speaking of openblas, someone fancy some debugging, I'm tired of it (looks like the same failure that breaks scipy with openblas):

    test_einsum_sums_float64 (test_einsum.TestEinSum) ... ==31931== Invalid read of size 16
    ==31931==    at 0x7B28EB9: ddot_k_NEHALEM (in /usr/lib/libopenblasp-r0.2.10.so)
    ==31931==    by 0x6DBDA90: DOUBLE_dot (arraytypes.c.src:3127)
    ==31931==    by 0x6E93DEC: cblas_matrixproduct (cblasfuncs.c:528)
    ==31931==    by 0x6E6B7B3: PyArray_MatrixProduct2 (multiarraymodule.c:994)
    ==31931==    by 0x6E6E29B: array_matrixproduct (multiarraymodule.c:2276)
    
  6. carlkl commented on Jan 22, 2015

    @carlkl
    Member

    OpenBLAS version used is 0.2.12. I didn't experienced significant problems with this version yet.

    The scipy failures are copied to https://gist.github.com/carlkl/b05dc6055fd42eba8cc7.

    32bit only numpy failures due to http://sourceforge.net/p/mingw-w64/bugs/367

    ======================================================================
    FAIL: test_nan_outputs2 (test_umath.TestHypotSpecialValues)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\core\tests\test_umath.py", line 411, in test_nan_outputs2
        assert_hypot_isinf(np.nan, np.inf)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\core\tests\test_umath.py", line 402, in assert_hypot_isinf
        "hypot(%s, %s) is %s, not inf" % (x, y, ncu.hypot(x, y)))
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 53, in assert_
        raise AssertionError(smsg)
    AssertionError: hypot(nan, inf) is nan, not inf
    
    ======================================================================
    FAIL: test_umath_complex.TestCabs.test_cabs_inf_nan(<ufunc 'absolute'>, inf, nan, inf)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\nose\case.py", line 197, in runTest
        self.test(*self.arg)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\core\tests\test_umath_complex.py", line 523, in check_real_value
        assert_equal(f(z1), x)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 275, in assert_equal
        return assert_array_equal(actual, desired, err_msg, verbose)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 739, in assert_array_equal
        verbose=verbose, header='Arrays are not equal')
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 628, in assert_array_compare
        chk_same_position(x_isnan, y_isnan, hasval='nan')
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 608, in chk_same_position
        raise AssertionError(msg)
    AssertionError: 
    Arrays are not equal
    
    x and y nan location mismatch:
     x: array([ nan])
     y: array(inf)
    
    ======================================================================
    FAIL: test_umath_complex.TestCabs.test_cabs_inf_nan(<ufunc 'absolute'>, -inf, nan, inf)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\nose\case.py", line 197, in runTest
        self.test(*self.arg)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\core\tests\test_umath_complex.py", line 523, in check_real_value
        assert_equal(f(z1), x)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 275, in assert_equal
        return assert_array_equal(actual, desired, err_msg, verbose)
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 739, in assert_array_equal
        verbose=verbose, header='Arrays are not equal')
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 628, in assert_array_compare
        chk_same_position(x_isnan, y_isnan, hasval='nan')
      File "D:\tools\wp_279\python-2.7.9rc1\lib\site-packages\numpy\testing\utils.py", line 608, in chk_same_position
        raise AssertionError(msg)
    AssertionError: 
    Arrays are not equal
    
    x and y nan location mismatch:
     x: array([ nan])
     y: array(inf)
    
  7. njsmith commented on Jan 22, 2015

    @njsmith
    Member

    I don't disagree about changing the win64 integer size, but I think that's
    a separate issue that should be decoupled from the wheels. If this were the
    first time win64 numpy builds were becoming widely available, then it'd
    make sense to link them, but at this point there are already tons of users
    for years, they're just using cgholke or anaconda or whatever. So let's
    treat that as an independent discussion?

    (Strictly speaking it's a backcompat break, but even so it seems reasonable
    that we might be able to pull it off, since it actually reduces
    incompatibility between platforms -- all portable code has to handle 64-bit
    dtype=int already.)

    On Thu, Jan 22, 2015 at 8:59 PM, Julian Taylor [email protected]
    wrote:

    fwiw I personally would like to change the size of the default integer in
    win64 before we actually provide official binaries, though there was some
    resistance too it when I last proposed it, also possibly with anaconda and
    other third party binaries its probably already too late :(

    also speaking of openblas, someone fancy some debugging, I'm tired of it
    (looks like the same failure that breaks scipy with openblas):

    test_einsum_sums_float64 (test_einsum.TestEinSum) ... ==31931== Invalid read of size 16
    ==31931== at 0x7B28EB9: ddot_k_NEHALEM (in /usr/lib/libopenblasp-r0.2.10.so)
    ==31931== by 0x6DBDA90: DOUBLE_dot (arraytypes.c.src:3127)
    ==31931== by 0x6E93DEC: cblas_matrixproduct (cblasfuncs.c:528)
    ==31931== by 0x6E6B7B3: PyArray_MatrixProduct2 (multiarraymodule.c:994)
    ==31931== by 0x6E6E29B: array_matrixproduct (multiarraymodule.c:2276)

    —
    Reply to this email directly or view it on GitHub
    #5479 (comment).

    Nathaniel J. Smith
    Postdoctoral researcher - Informatics - University of Edinburgh
    http://vorpus.org

  8. TFenby commented on Feb 12, 2015

    @TFenby

    I'm also interested in this. Is there some way of assisting with the process?

  9. carlkl commented on Feb 12, 2015

    @carlkl
    Member

    OpenBLAS can be compiled with INTERFACE64=1 and numpy can be compiled with -fdefault-integer-8 for a first try.

  10. tkelman commented on Mar 16, 2015

    @tkelman
    Contributor

    Just a heads up. Using 64 bit integers in blas is a terrible idea. Stop before you get too far down that road. Matlab, and Julia before I went and fixed it, did this, and it breaks any third-party library that assumes conventional 32-bit integers in blas.

    What we've been doing in Julia for the past ~5 months is actually renaming all the symbols in openblas to add a _64 suffix to them for the 64-bit-int version, that way you can do linear algebra on really huge arrays if you want, but loading external libraries into the same process won't segfault by name shadowing and trying to call dgemm with the wrong ABI.

  11. guyverthree commented on Jun 25, 2015

    @guyverthree

    Hey guys is there any update on the wheels files being made available for Numpy ?

  12. njsmith commented on Jun 25, 2015

    @njsmith
    Member

    Not that I'm aware of right now.
    On Jun 25, 2015 4:27 AM, "guyverthree" [email protected] wrote:

    Hey guys is there any update on the wheels files being made available for
    Numpy ?

    —
    Reply to this email directly or view it on GitHub
    #5479 (comment).

  13. mikofski commented on Jun 25, 2015

    @mikofski

    @guyverthree Christoph Gohlke has been releasing NumPy using Intel's MKL as wheels for a while now.

    Also, see my blog post on NumPy wheels. I made some NumPy wheels in my Dropbox using Carl Kleffner's modified mingw-w64 toolchain and Zhang Xianyi's OpenBLAS port of GotoBLAS. Olivier Grisel was looking for help modifying the NumPy buildbot to repeat the same steps used in the OpenBLAS google groups thread I post to.

  14. carlkl commented on Jun 26, 2015

    @carlkl
    Member

    My latest version is available on binstar.org though I'm not sure if anaconda.org is the new prefered name now.
    The wheels for py-2.6 .. 3.4 (32/64bit) are about 2 months old:

    • numpy-1.9.2
    • scipy-0.15.1
    • scikit-image-0.11.2

    build with my https://bitbucket.org/carlkl/mingw-w64-for-python and a more or less recent OpenBLAS.
    pip install:

    • pip install -i https://pypi.binstar.org/carlkl/simple numpy
    • pip install -i https://pypi.binstar.org/carlkl/simple scipy
  15. mikofski commented on Jul 10, 2015

    @mikofski

    +1 @carlkl and I wish these could be added to NumPy build at the Cheese Factory as well.

  16. 244 remaining items

  17. carlkl commented on Apr 28, 2016

    @carlkl
    Member

    @matthew-brett, I announced these builds a month ago, but I don't remember where. Anyway, these builds link against numpy-atlas supplied by your numpy wheels.

    scipy-0.17.0-cp35-cp35m-win##.whl are linked against the wrong C-runtime msvcrt.dll. For scipy this seems to be OK. Test logs are here: https://gist.github.com/carlkl/9e9aa45f49fedb1a1ef7

  18. matthew-brett commented on Apr 28, 2016

    @matthew-brett
    Contributor

    Is that the right log? It has NumPy is installed in D:\devel\py\python-3.4.4\lib\site-packages\numpy at the end.

    I was wondering if we are close to being able to provide a scipy wheel, even if it dangerously links against the wrong MSVC runtime, but it looks as is there are far too many errors for this build.

    Do you get fewer errors for the 64-bit build? For the current best build against openblas 0.2.18 ?

  19. carlkl commented on Apr 28, 2016

    @carlkl
    Member

    64bit has only 6 failures all with:

    FAIL: test_continuous_basic.test_cont_basic(<scipy.stats._continuous_distns.nct_gen object ...

    I know: this cries for comparison with OpenBLAS. However, I'm stuck since the last 4 weeks for several reasons as you may have noticed. Hopefully the situation will continue to improve.

    @matthew-brett, I would appreciate using numpy MSVC builds with OpenBLAS. My latest builds are here:

  20. mikofski commented on Apr 29, 2016

    @mikofski

    As if mingwpy, conda-forge, Anaconda and Canopy wasn't enough here comes the Intel Distribution for Python and it's free to download. It includes just the numerical tools (SciPy, NumPy, Numba, Scikit-Learn) plus some extras (mpi4py Intel mp interface and pyDAAL data analytics) and uses conda.

  21. mrslezak commented on Apr 29, 2016

    @mrslezak

    No worries the license expires 10/29/16 so these Intel builds are just a
    beta test followed by probably an MKL+ etc. license fee. OpenBLAS builds
    will remain the open source solution so thank you for providing these
    builds.
    On Apr 28, 2016 7:21 PM, "Mark Mikofski" [email protected] wrote:

    As if mingwpy, conda-forge, Anaconda and Canopy wasn't enough here comes
    the Intel Distribution for Python
    https://software.intel.com/en-us/python-distribution and it's free to
    download
    https://software.intel.com/en-us/articles/intel-distribution-for-python-support-and-documentation.
    It includes just the numerical tools (SciPy, NumPy, Numba, Scikit-Learn)
    plus some extras (mpi4py Intel mp interface and pyDAAL data analytics) and
    uses conda.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #5479 (comment)

  22. giumas commented on Jul 18, 2016

    @giumas

    For 1.11.1, it looks like that there is a missing Windows wheel on PyPi for Python 3.5 amd64.

    Is there a particular reason for that? If I go to 1.11.0 (https://pypi.python.org/pypi/numpy/1.11.0), the wheel is there.

  23. matthew-brett commented on Jul 18, 2016

    @matthew-brett
    Contributor

    Thanks for the report - I think we must have uploaded too soon, and therefore before all the wheels were built. I've uploaded the missing wheel. It looks like we need a test to make sure this doesn't happen again.

  24. giumas commented on Jul 18, 2016

    @giumas

    I've uploaded the missing wheel.

    I have just tested it, and it works great!

    Thank you so much for all the work done to make the Windows wheels available.

  25. pv commented on Oct 24, 2016

    @pv
    Member

    Closing the issue -- wheels have been available for the last few releases.

  26. waynenilsen commented on Sep 6, 2017

    @waynenilsen

    I understand that this issue is closed but I believe we should consider re-opening it.

    This remains an issue for windows users trying to get their scientific stack running without having to resort to conda. I still need to use the @cgohlke 'MKL' builds see this related scipy issue which remains open. Although wheels are being created, without being compatible with scipy, they are not usable for many.

  27. astrojuanlu commented on Sep 6, 2017

    @astrojuanlu
    Contributor

    @waynenilsen you have the instructions for installing the new wheels in the mailing list thread that is linked in the issue you just mentioned:

    scipy/scipy#5461 (comment)

    So if you do

    pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com/ --pre scipy
    

    it should work for you.

  28. pv commented on Sep 6, 2017

    @pv
    Member
  29. waynenilsen commented on Sep 6, 2017

    @waynenilsen

    This works great for me @Juanlu001 I am really looking forward to when this is on pypi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions