If you wish to install a non-Arch-packaged Python package, create a virtual environment using ‘python -m venv path/to/venv’. Then use path/to/venv/bin/python and path/to/venv/bin/pip.
cd mouse-scroll-wheel-acceleration-userspace
python -m venv venv
source venv/bin/activate
Now do your pip stuff in a virtual environment and not globally. We saw lot of users who have conllicts between pacman and pip, since they use the same folders as root. Then people come and say: “Oh pacman/pamac cannot upgrade! Plz Halp” etc. Please avoid that. The error, which was introduced upstream by pip devs, should be clear.
Since the script is a user space implementation, it should not need to have root access. User mode is more than enough.