'why pycryptodome pip while install pyrebase getting an error?

I am trying to pip pyrebase and get error like that:

**note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pycryptodome
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.**

I worked with 3.7 python version but I saw there were problems with the version so I changed it to 3.9.10. I also update the path and the interpreter in pycharm. Already tried to pip pycryptodome.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source