No module named numpy with pypy

11,453

You're referring to a 6-years-old post. The current, preferred way to install numpy on PyPy is simply pip install numpy. (This assumes pip refers to the PyPy version, like it does in a virtualenv made with PyPy. The link below describes an alternate way if you don't have virtualenv.)

For more details: http://pypy.org/download.html#installing-numpy

Share:
11,453
Rodriguez
Author by

Rodriguez

Updated on June 20, 2022

Comments

  • Rodriguez
    Rodriguez almost 2 years

    This question is related to Using Numpy with pypy

    I tried to use

    pip install git+https://bitbucket.org/pypy/numpy.git

    The system (Fedora release 24 (Twenty Four)) said

    git: 'submodule' is not a git command. See 'git --help'. Command "git submodule update --init --recursive -q" failed with error code 1 in /tmp/pip-LD8rrP-build

    Still it seems that numpy is not compatible with pypy.

    Is there any solution for this problem? P.S. I managed to setup it on ubuntu, but not fedora..

    Additional information:

    Fedora release 24 (Twenty Four)

    pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)

    git version 2.7.4

  • Rodriguez
    Rodriguez about 7 years
    I have tried this command. However, I received the following message >Requirement already satisfied: numpy in /usr/lib64/python2.7/site-packages
  • Ronan Lamy
    Ronan Lamy about 7 years
    That means you were using CPython's pip. You need to use pypy's pip. The easiest way to do that is to create a virtualenv for pypy and activate it. Then, running pip install numpy should just work.
  • Armin Rigo
    Armin Rigo about 7 years
    Updated the answer as per Ronan's suggestion. But also, the paragraph at the link I posted gives more details that you should read and follow.