I am using some numpy tools (mainly arrays) and I wanted to run the script with pypy, but i can't make it work.
The error that i get is: ImportError: No module named multiarray.
I checked if the multiarray.so file was in the core folder.
Can someone tell me if first: is possible to do what I am trying to do and second: How can I do it?
TL;DR version: you should use numpy. You can install it by doing pypy -m pip install numpy . You might also be interested in using the experimental PyPy binary wheels to save compilation time. The upstream numpy is written in C, and runs under the cpyext compatibility layer.
Compatibility: PyPy is highly compatible with existing python code. It supports cffi, cppyy, and can run popular python libraries like twisted, and django. It can also run NumPy, Scikit-learn and more via a c-extension compatibility layer.
Pip/pip3 is the official package manager for Python, but it can also be used by PyPy for installing Python modules.
For Python 2.7, it's just called pypy . For CPython, if you would like to run Python 3 from the terminal, you simply enter the command python3 . To run PyPy, simply issue the command pypy3 . Entering the pypy3 command in the terminal might return the Command 'pypy3' not found message, as shown in the next figure.
I've just posted a blog post explaining what's the status and what's the plan. In short numpy will not work with PyPy's cpyext and even if it does, it would be too slow for usage.
The other answers are quite old.
Here is the the completely unscientific measure of "implemented functions" on
numpypy status page
Some posts from the pypy blog about numpy:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With