Ls command not found is caused by the configuration of environment variables
Execute the following statement
export
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Then install your requirements and modify the environment variables