Windows10 under Install configuration Python and Django

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

  1. Install Python

    On the official website https://www.python.org/downloads/Download a version of the Python MSI file, I chose the 2.7.10 version, run directly and click on the prompt to complete the installation. During the installation process, we need to choose the installation path, this can be anywhere, I choose D:\Python27. After the installation is successful, find the idle (Python GUI) program in the Start menu and click Run. If the interface appears as shown, Python has been successfully installed.


    Enter print "Hello world!" at the back of >>>, as prompted by your eyesight Code and press ENTER, the program runs properly and prints out Hello world!

  2. Configuring Python Environment variables

    Open the computer Properties-Advanced system Settings-advanced-environment variable, locate the system variable in the popup interface, locate the variable name named path, and double-click it to edit its value. Keep the original value unchanged, if there is no semicolon at the end of the original value, add a semicolon, and then copy the Python-installed path D:\Python27 to the back and click OK. Open cmd, enter Python, and return to the display indicating that the configuration was successful.


  3. Installing the Python Package management tool

    Python has many tools to download and install packages, including Easy_install, Pip, distribute, and more. I use a pip, in fact, I chose the original Easy_install, but how are not installed, has not figured out what the reason is, the initial estimate is that Windows and Linux path conflict in Easy_install is not very good compatibility. Pip,http://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz#md5=2332e6f97e75ded3bddde0ced01dbda3 can be downloaded from the Python website. After the download is complete, unzip the file, use the cmd command to enter the extracted directory, enter the Python setup.py install in the CMD interface, press ENTER, PIP will be installed successfully. After the installation is successful, the PIP command is not immediately available in the CMD interface, and the PIP environment variable is configured first. Configure the PIP environment variable as described above with the python environment variable, except that the last added path value is D:\Python27\Scripts, because the successful installation of the PIP executable file is here. Enter PIP in cmd and press ENTER, and the interface will appear with the relevant commands available for PIP.

  4. Install Django with PIP

After installing the PIP, it's easy to install Django. In the CMD interface, enter PIP install Django, and then wait a while, Pip will automatically download the latest Django package from the Internet and install it automatically when the download is complete. When the interface tip: Successfully installed django-1.8.5, the Django installation is successful. Open Python's idle interface, enter import Django, press ENTER, if there is no error, it means that Django can work.


Related Blog reference: http://blog.csdn.net/i2cbus/article/details/43577041




Windows10 under Install configuration Python and Django

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.