首页 > 其他分享 >-bash: pip: command not found

-bash: pip: command not found

时间:2023-02-14 10:22:05浏览次数:49  
标签:get py python2.7 command usr pip found bash

使用pip安装软件包时报错命令不存在

[root@test ~]# pip -V
-bash: pip: command not found

 

机器上没有安装pip,需要手动进行安装

centos系统:

#python3.7版本
wget https://bootstrap.pypa.io/get-pip.py

#python2.7版本
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py

#安装
python2.7 get-pip.py

再查看pip版本

[root@test ~]# pip -V
pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)

若还是没有的话,搜寻pip安装路径,添加到系统命令

find / -name pip
ln -s  /usr/local/python/bin/pip /usr/bin/pip

 

标签:get,py,python2.7,command,usr,pip,found,bash
From: https://www.cnblogs.com/Xinenhui/p/17118792.html

相关文章