Ubable to install pylsp

Hello,
I tried to install pylsp using mason, but when I try to do that mason gives me this error message:

Installation failed for Package(name=python-lsp-server) error="Failed to create python3 virtual environment."

I tried to reinstall the virtual environment python packages but it didn’t solve it. I also tried to manually create a python virtual environment and it worked, so I don’t know why mason is not working.
If someone has an idea how to approach this problem, I’d really appreciate it…