[pypy-dev] Any news on pypy3 + numpy?

Neal Becker ndbecker2 at gmail.com
Sun Sep 23 10:32:50 EDT 2018


Matti Picus wrote:

> On 22/09/18 16:12, Neal Becker wrote:
>> https://mail.python.org/pipermail//pypy-dev/2016-September/014644.html
>>
>>
>> _______________________________________________
>> pypy-dev mailing list
>> pypy-dev at python.org
>> https://mail.python.org/mailman/listinfo/pypy-dev
> That was two years ago. Now you can just do pip install numpy, which
> will download the latest upstream numpy and build it, using any
> openblas/atlas you have available. Or you can try
> 
> pip install --extra-index https://antocuni.github.io/pypy-wheels/ubuntu
> numpy
> 
> on ubuntu, or on windows download from gohlke's site
> https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy which seems to have
> 1.14.5-pp360-win32.whl but not 1.15.0
> 
> Matti
Reason I asked is, 
Here's what I get:
pypy3
Python 3.5.3 (c573badf1521, Apr 25 2018, 17:27:42)
[PyPy 6.0.0 with GCC 8.0.1 20180424 (Red Hat 8.0.1-0.22)] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>>> import numpy
Traceback (most recent call last):
  File "/home/nbecker/.local/lib/python3.5/site-
packages/numpy/core/__init__.py", line 16, in <module>
    from . import multiarray
ImportError: cannot import name 'multiarray'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nbecker/.local/lib/python3.5/site-packages/numpy/__init__.py", 
line 142, in <module>
    from . import add_newdocs
  File "/home/nbecker/.local/lib/python3.5/site-
packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/home/nbecker/.local/lib/python3.5/site-
packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/home/nbecker/.local/lib/python3.5/site-
packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/home/nbecker/.local/lib/python3.5/site-
packages/numpy/core/__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError: 
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: cannot import name 'multiarray'



More information about the pypy-dev mailing list