Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] cant install python library requests  (Read 599 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] cant install python library requests

hello, im trying to install python library requests, but when im typed sudo pacman -S python-requests, i got this -
"python-charset-normalizer-3.3.1-1-any is up to date
error: failed to receive file 'python-charset-normalizer-3.3.1-1-any.pkg.tar.zst' from mirrors.dotsrc.org : The requested URL returned error: 404"  this is not full text of error message, next messages was same, but only mirror name from cant got file was other. after i got this error, im trying to install requests from AUR https://aur.archlinux.org/packages/python-types-requests, and its installed but when i try to execute any python program which including requests ("import requests"), i got error "ModuleNotFoundError: No module named 'requests'". then im try to install requests from https://gitea.artixlinux.org/packages/python-requests, and after "makepkg -si" i got the same error like when im try to install python-requests with pacman. how to fix this error or just install requests?


Re: cant install python library requests

Reply #2
The current version of the package is `3.3.2` not `3.3.1`. Perhaps you did not update in a long while hence why an old package version may go 404 like that. Neverless, a pacman -Syu first and then trying to install it should work since the package is on that mirror.