Centos7 基于virtualenv安装pypy

配置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 

创建虚拟环境指定pypy解释器

virtualenv --no-site-packages -p /usr/bin/pypy venv_pypy
source 
deactivate

你可能感兴趣的:(Centos7 基于virtualenv安装pypy)