简体   繁体   English

无法在 manjaro(Arch-Linux) 中安装 Pip,检索文件时出错

[英]Cannot install Pip in manjaro(Arch-Linux) , error while retriving files

I tried installing pip in manjaro(Arch-Linux) from terminal.我尝试从终端在 manjaro(Arch-Linux) 中安装 pip。 I tried running the following command -我尝试运行以下命令 -

sudo pacman -S python-pip sudo pacman -S python-pip

it gave me the following error -它给了我以下错误 -

Error Screenshot错误截图

python-pip-22.3-1-any.pkg.tar.zst failed to download Total (1/7) 3.9 MiB 80.0 KiB/s 00:50 [#######################################################################################] 100% error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirrors.ustc.edu.cn: SSL connection timeout error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.csclub.uwaterloo.ca: The requested URL returned error: 404 error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.tarnkappe.info: The requested URL returned error: 404 error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirrors.ucr.ac.cr: SSL connection timeout error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from manjaro.ipacct.com: The requested URL returned error: 404 error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.alpix.eu: The requested URL return python-pip-22.3-1-any.pkg.tar.zst 下载失败总计 (1/7) 3.9 MiB 80.0 KiB/s 00:50 [################ ################################################## #####################] 100% 错误:无法从 mirrors.ustc 检索文件“python-pip-22.3-1-any.pkg.tar.zst” .edu.cn: SSL 连接超时错误: 从 mirror.csclub.uwaterloo.ca 中检索文件 'python-pip-22.3-1-any.pkg.tar.zst' 失败: 请求的 URL 返回错误: 404 错误: 检索失败来自 mirror.tarnkappe.info 的文件“python-pip-22.3-1-any.pkg.tar.zst”:请求的 URL 返回错误:404 错误:检索文件“python-pip-22.3-1-any.pkg 失败”。 mirrors.ucr.ac.cr 中的 tar.zst:SSL 连接超时错误:从 manjaro.ipacct.com 中检索文件“python-pip-22.3-1-any.pkg.tar.zst”失败:请求的 URL 返回错误: 404 错误:从 mirror.alpix.eu 检索文件 'python-pip-22.3-1-any.pkg.tar.zst' 失败:请求的 URL 返回ed error: 404 warning: failed to retrieve some files error: failed to commit transaction (failed to retrieve some files) Errors occurred, no packages were upgraded.编辑错误:404 警告:检索某些文件失败错误:提交事务失败(检索某些文件失败)发生错误,没有升级包。

can anyone tell me how to fix this issue?谁能告诉我如何解决这个问题? and why pip wasn't packaged with python in the first place?以及为什么 pip 一开始没有与 python 打包在一起?

TLDR: just run pacman -Syu python-pip instead of pacman -S python-pip TLDR:只需运行pacman -Syu python-pip而不是pacman -S python-pip

As Arch Linux(and Manjaro) are rolling release it is not recommended to do do partial updates as they can break packages or in this case after some time the pacman database can be outdated so you should always do an update in order to prevent any issues when installing/updating packages, unless you know explicitly that you do not want to do a partial update you should not do it.由于 Arch Linux(和 Manjaro)正在滚动发布,因此不建议进行部分更新,因为它们可能会破坏软件包,或者在这种情况下,一段时间后 pacman 数据库可能会过时,因此您应该始终进行更新以防止出现任何问题安装/更新包时,除非您明确知道您不想进行部分更新,否则您不应该这样做。

as for the 404 error it is pretty common that the mirrors of the packages delete the old packages for those reasons.至于 404 错误,由于这些原因,包的镜像删除旧包是很常见的。

in the case for pip is unknow to me but it should be that python and pip are not the same and should be treated as suchpip的情况下,我不知道,但应该是pythonpip不一样,应该这样对待

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM