Python Easy_install encountered "Importerror:entry point (' console_scripts ', ' easy_install ') not found" error

Source: Internet
Author: User

Recently in the reptile, the use of nature is the famous scrapy. However, in the installation of Scrapy encountered a lot of problems, the first problem is that Scrapy is only compatible with Python2.7 above version. And my machine is still using Python2.6, so the first step is to reload Python, the specific installation process will not be repeated, there are many such tutorials on the web, and it is not complicated. It may be a bit of a hassle to use scrapy when using some other packages such as lxml and so on. Typically installed in the original Python version, the lazy way to do this is to copy the packages into the new Python search path. For example, the new Python2.7 search path is/usr/local/lib/python2.7/site-packages (this is the default Python tool and the external package installation path, Easy_install's default installation path is this), And the original Python2.6 search path is/usr/local/lib/python2.6/site-packages, that will /usr/local/lib/python2.6/site-packages Files are copied to /usr/local/lib/python2.7/site-packages .

Another problem is the installation of Easy_install encountered, because in the use of scrapy often used to service_indentity, so with Easy_install installed service_indentity, As a result, the following error occurred:


Traceback (most recent):  File "/usr/bin/easy_install", line 9, <module>    load_entry_point (' distribute==0.7.3 ', ' console_scripts ', ' Easy_install ') ()  File "/usr/local/lib/python2.7/site-packages/ setuptools-15.0-py2.7.egg/pkg_resources/__init__.py ", line 546, in Load_entry_point    return get_distribution ( DIST). Load_entry_point (group, name)  File "/usr/local/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg/ pkg_resources/__init__.py ", line 2665, in Load_entry_point    raise Importerror (" entry point%r not found "% (group, NAM e)) Importerror:entry point (' console_scripts ', ' Easy_install ') is not found

This is because the distribute upgrade to the version after 0.7, and the previous easy_install incompatible, because distribute from the 0.7 version and Setuptools merged together, and the solution is to delete the original Easy_install , reinstall Distribute.


First step: Delete Easy_install

sudo rm-f/usr/bin/easy_install*sudo rm-f/usr/local/bin/easy_install*

Part II: Installation of Distribute

Curl-o Https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.pysudo python Distribute_setup.pysudo RM distribute_setup.py

OK, this problem is solved!

Python Easy_install encountered "Importerror:entry point (' console_scripts ', ' easy_install ') not found" error

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.