CentOS the PIP pkg_resources. Distributionnotfound:the ' pip==1.5.4 ' distribution is not found ...

Source: Internet
Author: User

Error message:

Pkg_resources. Distributionnotfound: The 
' pip==1.5.4 ' distribution was not found and are required by the application

According to the hint information can know distribution not installed, so install it:

$wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz
$tar-XZVF distribute-0.6.10.tar.gz
$cd distribute-0.6.10
$python setup.py Install

Then install PIP 1.5.4

Easy_install pip==1.5.4

Now run Scrapy error:

Bash:scrapy:command not found

This is where the path does not find Scrapy, now scrapy in/usr/local/bin/scrapy, so make a soft connection in path to here.

$CD/usr/bin/| ll | grep scrapy  # Check for presence
$LN-S/usr/local/bin/scrapy/usr/bin/scrapy  # Create a new soft connection
$scrapy list  # test succeeded

Reference:
https://blog.csdn.net/daiyutage/article/details/69945850
Https://blog.csdn.net/EDDYCJY/article/details/77482228?locationNum=6&fps=1

Windows Personal Summary of the installation Scrapy landfills:
① installation python2.7 (2.7.9 should be brought with Pip and Setuptool after)
② installation Pywin32 (Linux should be able to skip, Win under no this run Scrapy will complain)
③ install lxml go to https://pypi.python.org/pypi/lxml download the corresponding version (win currently only 3.6.0)
④ install Pyopenssl, go to HTTPS ://launchpad.net/pyopenssl download the corresponding version of the installation
⑤pip install Scrapy
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.