Python: pip

Source: Internet
Author: User
Tags install django pip install django

Python: pip

How to install Django using pip in Python

After learning the Python package management tool, we will configure the development and running environment of Django based on the previous knowledge.

First, install Django (via pip ):

pip install Django

The output result is as follows:

Downloading/unpacking Django Downloading Django-1.5.2.tar.gz (8.0MB): 8.0MB downloaded Running setup.py egg_info for package Django  warning: no previously-included files matching '__pycache__' found under directory '*'  warning: no previously-included files matching '*.py[co]' found under directory '*'Installing collected packages: Django Running setup.py install for Django  changing mode of build/scripts-2.7/django-admin.py from 644 to 755  warning: no previously-included files matching '__pycache__' found under directory '*'  warning: no previously-included files matching '*.py[co]' found under directory '*'  changing mode of /usr/local/bin/django-admin.py to 755Successfully installed DjangoCleaning up...

Verify that Django is successfully installed:

[root@nowamagic ~]# python2.7Python 2.7.5 (default, Sep 2 2013, 15:56:04)[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import django>>>

The import is successful, that is, Django has been installed successfully.

Now you go to/usr/local/bin/, you can also see the corresponding django-admin.py, so you can use the django-admin.py to create a project.

Thank you for reading this article. I hope it will help you. Thank you for your support for this site!

Related Article

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.