bash: pip : command not found
Download and install
wget “https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb” –no-check-certificate
tar -axf pip-1.5.4.tar.gz
cd pip-1.5.4/
python setup.py install
After installation, use PIP – V to report an error as follows:
bash: PIP: command not found…
what should I do at this time
just make a soft connection:
first check the installation path:
find/-name pip
Make a soft connection
ln -sv /usr/local/python/bin/pip /usr/bin/pip
You can use it when you’re done
bash: scrapy: command not found
1、 Scene
After PIP install sketch
is executed, the installation is successful and Import sketch
is executed successfully
2、 Questions
Executing sketch in shell returns bash: Sketch: command not found
3、 Solutions
(1) Enter the python home directory, such as CD/usr/local/python3.6/bin
, and find the sketch item
(2) check CD/usr/bin/| ll | grep sketch
, and check whether it exists
(3) if it does not exist, execute ln - S/usr/local/bin/sketch/usr/bin/sketch
(4) return to the shell, execute sketch version
, and succeed