Linux installation PyPy, virtualenv and how to use _linux

Source: Internet
Author: User
Tags virtual environment virtualenv

Linux installation PyPy

The system you use is CentOS 7 (similar to the installation method of other Linux machines)

First download the PyPy RPM package.

Http://pkgs.org/search/?keyword=pypy

Download sequentially

pypy-libs-2.2.1-2.el7.x86_64.rpm

pypy-2.2.1-2.el7.x86_64.rpm

pypy-devel-2.2.1-2.el7.x86_64.rpm

Install in turn, Libs files must be installed with the interpreter first.
RPM-IVH pypy-libs-2.2.1-2.el7.x86_64.rpm

RPM-IVH pypy-2.2.1-2.el7.x86_64.rpm

RPM-IVH pypy-devel-2.2.1-2.el7.x86_64.rpm

After installation, enter PyPy in the terminal to invoke the PyPy interpreter.

Install Virtualnev

In the terminal, direct use of the command
Pip Install Virtualenv
Of course, the prerequisite is that the PIP has been installed, its own computer with.

Enter VIRTUALENV in the terminal to see the relevant commands.

Building a basic virtual environment

In the terminal input

Virtualenv–no-site-packages-p pypy App

Explain:

The default interpreter after-P is the PyPy
The app represents creating a file directory where the files used by the virtual environment are placed.

and enter the app directory.
CD app

Enter a command to activate the virtual environment
SOURCE Bin/activate

And you'll find that app appears at the front of the command.

Install the Python package you want to use
PIP Install package

You can now use the PyPy interpreter, including the packages before the PIP installation in PyPy

Use the virtual environment again

When you use a virtual environment again, you do not need to rebuild the directory, as long as the terminal enters the previously configured virtual Environment directory app, and then activates the environment as above.

The above Linux installation PyPy, virtualenv and the use of the method is small to share all the content of everyone, hope to give you a reference, but also hope that we support the cloud habitat community.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.