[python] Correct some docs for python api (#10772)
* Remove add leading `$` from command * Add copy button from code block * Using `python -m pip` to install package avoid error
Showing
* Remove add leading `$` from command * Add copy button from code block * Using `python -m pip` to install package avoid error