Python installation module error (ImportError: No module named setuptools) Solution

Source: Internet
Author: User

When a third-party module is installed on the window platform, the following error occurs:

Only after Google clicks below can we know that this module is missing in Python.

We can go to the Python official website to find

In the Package Index, check the required modules and download and install them.

Refer to the following:

Http://blog.sina.com.cn/s/blog_3fe961ae0100zgav.html

Third-party Python modules usually contain the setup. py file. In Windows, you only need to use the command

Cd c: \ Temp \ foo

Python setup. py install

You can install the third-party module by using the two commands. The first cd command switches the current directory to the directory of the third-party module to be installed (assume that the unzipped directory of the third-party module is c: \ Temp \ foo ), the second command is executed and installed. The "ImportError: No module named setuptools" error message may appear during the installation process. This is a common error message for new users. Don't worry, this is because the setuptools module is not installed by default in Python in Windows, which is also a third-party module. Http://pypi.python.org/pypi/setuptools.

If it is a Windows environment, download the installation program in the exe format (silly installation, very fast ). After setuptools is installed, Run "python setup. py install" to install various third-party modules.

If it is a Linux environment, it may be a little troublesome, maybe because the author is not capable enough. The following describes the installation process of setuptools in Linux. It is also in the pipeline + x setuptools-0.6c11-py2.7.egg command to make the file executable. Then run the sudo sh setuptools-0.6c11-py2.7.egg command to complete the installation.

 

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.