Thanks for reaching out to Q&A.
I am answering this from second method's perspective. It appears that the problem is with the python/packages version. Here are some common issues encountered by other developers, please check out these discussions to see if it helps.
https://stackoverflow.com/questions/32302379/could-not-find-a-version-that-satisfies-the-requirement-package
https://exerror.com/solved-could-not-find-a-version-that-satisfies-the-requirement/
https://github.com/Azure/azure-cli/issues/1308
Feel free to reach out to me if the above articles doesn't help.