Invalid Python SDK, with PyCharm 2016.3.2 and Python 3.6.0
We updated Python from 3.5 -> 3.6 how ever after that PyCharm started to show an error. I installed latest PyCharm and tried to add the virtual environment where the Python 3.6 is and it says: Invalid Python SDK: Cannot set up python SDK at ... ... The SDK seems invalid.
However I am able to run the project ( a django project BTW.) BUT every time I hit run-button PyCharm opens up Edit configuration-page for that project instead of running the project. Then I have to click "Run" from that page and it says "Configuration is still incorrect...bla bla" and I click "Continue anyways" and the project runs normally.
I am able to continue development with this but it is really annoying to click all those extra steps through to get the project running. Help me. What do?
请先登录再写评论。
Does it look anything like this issue? Is there anything unusual about your project interpreter (vagrant, docker, conda)?
We use virtualenv. Works perfectly with Python 3.5. Works perfectly from command line. It even "works" from pycharm if you disregard the fact that you have to click few extra times to close some annoying dialogs every time you run the project. It would be nice to know how PyCharm determines if an SDK is valid or not.
OK I managed to create a working virtualenv with Python 3.6 for PyCharm so its not Python3.6(most likely) that is breaking the env for PyCharm, I shall post again when I know what is wrong with our dev virtualenv.
OK it seems it is the python3.6 after all. We are building the python from sources. I don't know the flags and steps I haven't checked them out yet. But as soon as I replaced the python in our virtualenv with the precompiled python3.6 ( https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6 ) it started working.