Eclipse+pydev +django Error-prone when building development environment

Source: Internet
Author: User

1. Note whether the installed software and the number of system bits match.

2. When installing the Django Framework, note that the Setuptools tool is installed. In Python, the installation of a third-party module is done through the Setuptools tool. Python has two package management tools that encapsulate the Setuptools: easy_install and pip . Currently the official recommended use pip . If you are using Mac or Linux, install the PIP itself this step can be skipped. If you are using Windows, please refer to the section on installing Python to make sure that the and is checked during installation pip Add python.exe to Path . When you try to run under a command Prompt window pip , if the Windows prompt does not find a command, you can rerun Setup to add the program pip .

3. After creating the Django Project times Django not found error installation complete Python,django and Pydev, create a Django project with the Pydev Wizard. At this point, you may get an error: Django not found.

This is because Python has been installed before the Django installation, so Pydev cannot find the path to which Django is located.

Workaround:
Click eclipse->window-> Preferences->pydev->interpreter-python to see if there is or no Python interpreter. Remove the interpreter.
Then click Auto Config to automatically generate a Python interpreter configuration.
Then click Apply to use the new configuration.

When you're done, you should be able to create a Django project with Pydev!

Eclipse+pydev +django Error-prone when building development environment

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.