Python installation module error (Importerror:no module named setuptools) workaround

Source: Internet
Author: User

Python installation module error (Importerror:no module named setuptools) workaround(
Statements were

Python's third-party module typically comes with setup.py files, and in a Windows environment we only need to use commands

CD C:\Temp\foo

Python setup.py Install

Two commands to complete the installation of the third-party module. The first CD command will currently switch to the directory of the third-party module to be installed (assuming that the third-party module is c:\Temp\foo after the decompression), and the second command executes the installation. The error message "Importerror:no module named Setuptools" may appear during installation, which is a common error message that novice users encounter. Don't worry, this is because Python does not have the Setuptools module installed by default in the Windows environment, which is also a third-party module. For Http://pypi.python.org/pypi/setuptools.

If it is a Windows environment, download the exe form of the installation program can be (fool-like installation, very fast). Once Setuptools is installed, it is easy to install a variety of third-party modules by running Python setup.py install.

2014-08-07 Update:

Now Http://pypi.python.org/pypi/setuptools does not seem to provide exe download, instead of an automated download installation of the script https://bootstrap.pypa.io/ez_setup.py, download the script to run

Python ez_setup.py

Can. The script automatically determines the Python version, automatically downloads, installs.

If it is a Linux environment, it may be a little more trouble, it may be the author's ability is not enough. Here's a brief look at the installation process for Linux under Setuptools. Also in http://pypi.python.org/pypi/setuptools this place download Setuptools-0.6c11-py2.7.egg file to local, use chmod +x The Setuptools-0.6c11-py2.7.egg command makes the file an executable file. Then run the sudo sh setuptools-0.6c11-py2.7.egg command to complete the installation.

The above method is feasible by the author's test. If you have any questions, you can leave a message.

Error in Python installation module (importerror:no module named setuptools) workaround

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.