Use pypy5 for CentOS7 Installation
1. Install the system environment and pypy
Rpm-ivhhttp: // dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
Rpm-import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Yum-y install nginxMySQL-libs mysql-develPython-setuptools
Yum-y install pypy-libs pypy-devel
2. Install pip
Wgethttps: // bootstrap. pypa. io/ez_setup.py-O-| python
Wgethttps: // bootstrap. pypa. io/ez_setup.py-O-| pypy
Wgethttps: // response
Tar-zxcf pip-8.1.2.tar.gz
Cd pip-8.1.2
Python setup. py install
Pypy setup. py install
3. Install Python and modules:
Run pypy pythonfile. py (same as python)
Module installation: pypy-m pip install modulename
Numpy installation is slightly different:
See: http://pypy.org/download.html#installing
Up to, numpy has not supported pypy3 well:
For now, NumPyPy does not work with PyPy3 *, and is not complete. You may get warnings or NotImplemented errors. Please let us know if you get crashes or wrong results.
(From pypy's numpy project official https://bitbucket.org/pypy/numpy.git)
Appendix: For which modules can be installed normally in pypy and which modules cannot be installed, the official list is provided. Blue indicates yes, and red indicates failure.
Http://packages.pypy.org/