Pycharm,找不到Python版本2.7.11 [英] Pycharm, can not find Python version 2.7.11

查看:155
本文介绍了Pycharm,找不到Python版本2.7.11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此Mac上安装了Python 2.7.11,并且可以从终端Python 2.7.11启动.然而, 从Pycharm的解释器(2016.1版)开始,没有Python 2.7.11.

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.

有什么建议吗?谢谢

PS:我在一台Mac上成功完成了此操作,但是由于某种原因,我无法在另一台Mac上做到这一点……很奇怪.

PS:I successfully did this on one Mac, but for some reason I cannot make it on another Mac... odd..

推荐答案

如果从列表中找不到,则可以手动添加,

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

您需要在添加本地对话框中指定python路径.您提到可以从终端启动python 2.7.11,然后在终端中输入哪个python"并获取python路径.复制此路径粘贴到您的PyCharm添加本地".例如:

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

这篇关于Pycharm,找不到Python版本2.7.11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆