centos7 中 bash: pip: command not found...

发布时间 2023-08-29 21:06:19作者: 小鲨鱼2018

 

001、系统信息、问题

[root@pc1 software]# cat /etc/redhat-release      ## 系统信息
CentOS Linux release 7.6.1810 (Core)
[root@pc1 software]# pip install pysam             #
bash: pip: command not found...

 

002、解决方法

[root@pc1 software]# curl  https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
[root@pc1 software]# python get-pip.py

 

003、测试

[root@pc1 software]# pip install pymysql

 

参考:https://blog.csdn.net/xoofly/article/details/128245522