ascend-deployer Is Unavailable Because the Python Installation Is Interrupted Unexpectedly

Symptom

When a user runs the bash install.sh --check command or other installation commands for the first time, Python 3.7.5 is automatically installed. If the Python installation is interrupted unexpectedly, the tool may be unavailable when the command is executed again.

Solution

Delete the Python 3.7.5 installation directory ($HOME/.local/python3.7.5 for a non-root user; /usr/local/python3.7.5 and $HOME/.local/python3.7.5 for the root user). Then, install Python again.