歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS7 安裝使用pypy5

CentOS7 安裝使用pypy5

日期:2017/3/6 9:47:30   编辑:學習Linux

CentOS7 安裝使用pypy5


CentOS7 安裝使用pypy5


1 安裝系統環境及及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 pypy-devel

2、安裝pip
wgethttps://bootstrap.pypa.io/ez_setup.py-O - | python
wgethttps://bootstrap.pypa.io/ez_setup.py-O - | pypy
wgethttps://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a
tar -zxcf pip-8.1.2.tar.gz
cd pip-8.1.2
python setup.py install
pypy setup.py install

3、使用pypy及模塊安裝:
執行: pypy pythonfile.py (跟python用法一樣)
模塊安裝: pypy -m pip install modulename
numpy安裝略有不同:
詳見:http://pypy.org/download.html#installing
到2016/06/07,numpy對pypy3的支持還沒有很好:

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.
(來自pypy 的numpy項目官網https://bitbucket.org/pypy/numpy.git)

附:關於哪些模塊能在pypy裡正常安裝,哪些不能,官方給了列表,藍的表示可以,紅的表示失敗。
http://packages.pypy.org/

http://xxxxxx/Linuxjc/1134248.html TechArticle

Copyright © Linux教程網 All Rights Reserved