I have an AWS Amplify project and am trying to add lambda functions using python 3.8 runtime.
I initially had Python 3.9 installed, however the lambda functions would only support 3.8
So I uninstalled 3.9 and installed 3.8
Now when I run 'Amplify push' I get the following error
I have tried uninstalling and reinstalling python & pipenv & Amplify CLI.
"3.9" is not mentioned in the pipfile or anywhere else in the project, nor in my environment variables.
I don't know why Amplify is looking here for the Python installation, if I run 'Python --version' it prints 3.8
How can I get change the location of where it's searching?
I found two separate issues that gave me this symptom
pipenv
once, it remembers and expects Python to be in the same place. You can erase it's previous settings withpipenv --rm
You need to do this for all lambdas