CentOS7 安裝使用pypy5

來源:互聯網
上載者:User

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/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.