Pycharm, can not find Python version 2.7.11

喜欢而已 提交于 2019-12-12 03:30:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!