配置rpm
rpm -ivh [http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm](http://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
yum -y install pypy-libs pypy pypy-devel
安裝pip
wget --no-check-certificate [https://bootstrap.pypa.io/ez_setup.py](https://bootstrap.pypa.io/ez_setup.py) -O - | pypy
wget [https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a](https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a)
tar -zxvf pip-8.1.2.tar.gz
cd pip-8.1.2
python setup.py install
pypy setup.py install
使用pypy-pip
pypy -m pip install modulename
創(chuàng)建虛擬環(huán)境指定pypy解釋器
virtualenv --no-site-packages -p /usr/bin/pypy venv_pypy
source
deactivate
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者