Ubuntu 14.04 LTS Source installation Juno version Keystone Development Environment

Source: Internet
Author: User
Tags virtual environment virtualenv

System environment:

Ubuntu 14.04 LTS

Python 2.7

First, the following tools have been installed on the system:

Git
Setuptools
Pip
Msgfmt
Virtualenv

Second, access to the source code
$ git clone https://github.com/openstack/keystone$ cd Keystone
Third, install some of the PIP does not support the dependency
sudo Install python-dev libxml2-dev libxslt1-dev libsasl2-dev libsqlite3-dev libssl-dev libldap2-dev Libffi-dev
Four, set the virtualenv for Keystone, the script has been written
$ python tools/install_venv.py
V. Command Sihui to create a local virtual environment under the. Venv directory, you can use the following command to start the virtual environment
$ source. venv/bin/activate

Other commands can also be run in this virtual environment, assuming we want to run "command" in that virtual environment, use the following instruction

$ tools\with_venv. SH <command>

Vi. after entering the virtual environment, you can use the command "deactivate" to turn off the virtual environment.

$ deactivate

Vii. Verification of successful installation

$ source. venv/bin/activate$ python
Import Keystone in Python's interactive interface to see if it's successful.
Import Keystone>>>
If there are no exceptions, the Keystone has been properly installed.


Ubuntu 14.04 LTS Source installation Juno version Keystone development Environment

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.