Aws-toolkit-jetbrains: PyCharm + AWS Toolkit Not Picking the correct Python Version for sam build from the IDE

Created on 13 Dec 2018  路  5Comments  路  Source: aws/aws-toolkit-jetbrains

I am following https://aws.amazon.com/blogs/aws/new-aws-toolkits-for-pycharm-intellij-preview-and-visual-studio-code-preview/

I am getting an issue when I try to deploy the service from the PyCharm IDE. It's failing on sam build because it's picking the Python 2.7. But when I run sam build from the console with (venv) It's picking the correct python version.

You can see all on the screenshot in https://stackoverflow.com/questions/53600974/pycharm-aws-toolkit-not-picking-the-correct-python-version-for-sam-build-from

dependency

Most helpful comment

same issue

All 5 comments

I'm facing the exact same issue. Any solutions?

same issue

Please upgrade SAM CLI to at least 0.12.0. It contains fixes to find the correct python version if you have multiple installed.

I am facing this issue with SAM version 0.53.0 and a conda virtual environment on Windows 10. I am able to build it from the activated environment in the console but not from Pycharm IDE. I created the conda virtual env within an anaconda prompt and set it to the project interpreter within Pycharm.

Was this page helpful?
0 / 5 - 0 ratings