This will expose the command pylsp on your PATH. Confirm that installation succeeded by running pylsp --help. If the respective dependencies are found, the following ...
Don't check for output on stderr to know if an import worked, host inputrc and sysroot readline can cause warnings on stderr.