用find / -name "pip",也找不到类似/usr/bin/pip类似的命令,说明pip没安装好,那么运行下面的命令
yum install python-pip
然后可能会报错:
pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is required by the application
解决方法:
vim /usr/bin/pip
将所有的7.1.0更改为9.0.1版本即可
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'__requires__ = 'pip==9.0.1'import sysfrom pkg_resources import load_entry_pointif __name__ == '__main__':
sys.exit( load_entry_point('pip==9.0.1', 'console_scripts', 'pip')() )