1.安装pypy
sudo apt-get install pypy pypy-dev
测试安装:
2.安装pip、setuptools
1.下载pip安装包
wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a
--2016-10-06 15:51:17-- https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
2.解压
tar -xzvf pip-8.1.2.tar.gz -C /usr/lib/pypy/dist-packages/
3.安装
cd /usr/lib/pypy/dist-packages/pip-8.1.2
pypy setup.py install
4.测试安装
pypy -m pip install 包名
5.安装setuptools
pypy -m pip install setuptools
最后就是使用pypy了,其实非常简单,平时我们执行脚本python main.py,以后改成pypy main.py就可以啦,快去试试性能提升吧