pip3:找不到命令,但是已经安装了python3-pip [英] pip3: command not found but python3-pip is already installed

查看:1720
本文介绍了pip3:找不到命令,但是已经安装了python3-pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管已经安装了python3-pip,但我无法使用pip3.如何解决问题?

I can't use pip3 though python3-pip has already been installed. How to solve the problem?

sudo pip3 install virtualenv
sudo: pip3: command not found

sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

推荐答案

运行

locate pip3

它应该给您这样的结果列表

it should give you a list of results like this

/<path>/pip3
/<path>/pip3.x

转到/usr/local/bin以建立指向pip3所在位置的符号链接

go to /usr/local/bin to make a symbolic link to where your pip3 is located

ln -s /<path>/pip3.x /usr/local/bin/pip3

这篇关于pip3:找不到命令,但是已经安装了python3-pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆