问题
I installed Python 2.7.11 on this Mac, and from terminal Python 2.7.11 can be started. However, From the interpreter of Pycharm (2016.1 version) , there is no Python 2.7.11.
Any suggestions ? Thanks
PS:I successfully did this on one Mac, but for some reason I cannot make it on another Mac... odd..
回答1:
if you cannot find from the list, you can add it manually,
https://www.jetbrains.com/help/pycharm/2016.1/configuring-local-python-interpreters.html?origin=old_help
you need to specify the python path in the add local dialogue. you mentioned that you can start python 2.7.11 from your terminal, then type 'which python' in your terminal and get your python path. copy paste this path to your PyCharm "add Local" . e.g:
bash-3.2$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
回答2:
Just click on the python in the first image you uploaded. It will work.
来源:https://stackoverflow.com/questions/37064820/pycharm-can-not-find-python-version-2-7-11