linux服务器easy_install下载安装pip提示报错command not found

linux服务器下载安装pip执行命令easy_install pip时可能会报如下错误

-bash: easy_install: command not found

解决办法:

wget https://bootstrap.pypa.io/ez_setup.py -O - | python

完成下载即可,然后可以继续下载pip

creating /usr/lib/python2.7/site-packages/pip-19.3.1-py2.7.egg
Extracting pip-19.3.1-py2.7.egg to /usr/lib/python2.7/site-packages
Adding pip 19.3.1 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip2.7 script to /usr/bin
Installing pip2 script to /usr/bin

Installed /usr/lib/python2.7/site-packages/pip-19.3.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

最后整个下载流程提示如上内容,即完成下载安装

你可能感兴趣的:(linux)