I guess it because I installed new python2.7 on CentOS 6.
Background:
I installed python2.7 on my CentOS 6, but keep python 2.6 of system because my yum is based on python 2.6, and I set python 2.7 as default by:
ln -s /usr/local/python2.7.12/bin/python2.7 /usr/bin/python
Then install new pip for py2.7 and set default by:
ln -s /usr/local/python2.7.12/bin/pip2.7 /usr/bin/pip
last I install scrapy by : pip install scrapy
, it success!
But in terminal I run: scrapy -V
it throw:
-bash: scrapy: command not found
I guess the scrapy need to be ln -s
too as default for system, but I don't know what to do.
Copyright Notice:Content Author:「JoeKevin」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/43821638/centos-6-scrapy-commend-not-foundinstalled-successfully