简体   繁体   中英

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

I tried installing pip in manjaro(Arch-Linux) from terminal. I tried running the following command -

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 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.

can anyone tell me how to fix this issue? and why pip wasn't packaged with python in the first place?

TLDR: just run pacman -Syu python-pip instead of 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.

as for the 404 error it is pretty common that the mirrors of the packages delete the old packages for those reasons.

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 such

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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