升级PIP升级后安装后的PIP更新错误我每次使用PIP时都不能使用它是相同的错误,并且Sudo不能用于安装

发布于 2025-02-07 06:49:07 字数 555 浏览 0 评论 0原文

今天我安装了一个带有python的PIP的模块 在终端中,它说可以使用新版本的PIP警告,您可以通过使用 PIP-升级 它成功安装了 在那之后 每当我尝试安装任何模块时,它都会说pip:术语“ pip”术语不被识别为cmdlet,函数,脚本文件或可操作程序的名称。检查名称的拼写,或者如果包括路径,请验证该路径是否正确并重试。

我在这里和那里搜索,人们说使用sudo python -m pip -uninstall pip&& sudo apt python - install pip -reinstall

在其中说同样的话,但此次

'sudo' : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 

包括,它验证路径是正确的,然后重试。

today I install a module with pip for python
in the terminal it says warning new version of pip is available u can install it by using
pip --upgrade
And it successfully installed but
after that
whenever I try to install any module it says pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

and i searched here and there and people say that use sudo python -m pip --uninstall pip && sudo apt python -install pip --reinstall

where it says the same thing but this time its

'sudo' : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 

included, verify that the path is correct and try again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦言归人 2025-02-14 06:49:07

看来您需要在路径中添加Python和PIP(指令)。

另外,正如John Gordon指出的那样,Sudo是Unix/Linux命令,您似乎正在使用Windows。

It looks like you need to add Python and PIP to your path (Instructions).

Also as John Gordon pointed out, sudo is a Unix/Linux command and you appear to be using Windows.

木格 2025-02-14 06:49:07

Python-sudo是一个模块化,可以执行任何子过程命令作为另一个用户。

我们可以通过使用PIP安装Sudo安装它,

我们知道Sudo是Linux命令,但我们可以在Python中使用它。

Python-sudo is a Modular to execute any subprocess commands as another user.

We can install it by using pip install sudo

We know that sudo is a Linux command but we can use it in python.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文