-bash: pip: command not found

1.问题说明

pip 安装python模块,报错

# pip install pymysql
-bash: pip: command not found

2.问题解决

  • 下载文件
# wget https://bootstrap.pypa.io/get-pip.py
  • 最后直接使用 pip 更新命令,成功安装最新版 pip
# python3 -m pip install --upgrade pip
  • 再次安装python模块,不再报错
# pip -V
pip 21.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)


#  pip install pymysql

你可能感兴趣的:(centos7,python3,pip,pymysql)