<p>Installation works on any recent PyPy (the <aclass="reference internal"href="#release">release</a> above is fine).
For example, without using a virtualenv:</p>
<preclass="literal-block">
$ ./pypy-xxx/bin/pypy -m ensurepip
$ ./pypy-xxx/bin/pip install cython numpy
</pre>
<p>(See the general <aclass="reference external"href="http://doc.pypy.org/en/latest/install.html">installation documentation</a> for more.)</p>
</div>
<divclass="section"id="numpypy">
<h2>2. NumPyPy</h2>
<p>The “numpy” module can also be installed from <aclass="reference external"href="https://bitbucket.org/pypy/numpy">our own repository</a> rather
than from the official source. This version uses our
built-in <ttclass="docutils literal">_numpypy</tt> multiarray replacement module, written in RPython.
This module is not complete, but if it works it should give correct answers.
Its performance is hard to predict exactly. For regular NumPy
source code that handles large arrays, it is likely to be slower than
the standard NumPy. It is faster on pure python code that loop over ndarrays
doing things on an element-by-element basis.</p>
<p>Installation (see the <aclass="reference external"href="http://doc.pypy.org/en/latest/install.html">installation documentation</a> for installing <ttclass="docutils literal">pip</tt>):</p>
<p>If you installed to a system directory, you need to also run this once:</p>
<preclass="literal-block">
sudo pypy -c 'import numpy'
</pre>
<p>Note again that this version is incomplete: many things do
not work and those that do may not be any faster than NumPy on CPython.
For further instructions see <aclass="reference external"href="https://bitbucket.org/pypy/numpy">the pypy/numpy repository</a> and the
<aclass="reference external"href="http://doc.pypy.org/en/latest/faq.html#should-i-install-numpy-or-numpypy">FAQ question</a> about the difference between the two.</p>
</div>
</div>
<divclass="section"id="building-from-source">
<divclass="section"id="building-from-source">
<spanid="translate"></span><h1>Building from source</h1>
<spanid="translate"></span><h1>Building from source</h1>
<p>(see more build <aclass="reference external"href="http://pypy.readthedocs.org/en/latest/build.html">instructions</a>)</p>
<p>(see more build <aclass="reference external"href="http://pypy.readthedocs.org/en/latest/build.html">instructions</a>)</p>