bash: pip3: command not found...

 

001、问题

[root@pc1 test01]# pip3 --version

 

002、解决方法

a、

[root@pc1 test01]# yum -y install epel-release

 

b、

[root@pc1 test01]# yum  install python3-pip -y

 

003、测试

[root@pc1 test01]# pip3 --version
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

 

004、更新pip3

复制代码
[root@pc1 test01]# pip3 install --upgrade pip
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
    100% |████████████████████████████████| 1.7MB 18kB/s
Installing collected packages: pip
Successfully installed pip-21.3.1
[root@pc1 test01]# pip3 --version
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
复制代码

 .

 

posted @   小鲨鱼2018  阅读(540)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2022-09-07 plink软件计算基因频率产生NA的原因
2022-09-07 R语言中如何判断数据框列或者行全部为指定值
2022-09-07 R语言中是数据向量或数据框的正负值转换
2022-09-07 rhel7.0中将vim 7.4 升级到 vim 8.2版本
点击右上角即可分享
微信分享提示