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