无法将python SDK添加到Intellij IDEA [英] Unable to add python sdk to Intellij IDEA

查看:150
本文介绍了无法将python SDK添加到Intellij IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个空的 Intellij 项目,其中仅包含默认的 java SDK:

I have an empty Intellij project that has just the default java SDK included:

现在我已经向项目添加了 python 脚本:但是由于未定义python sdk,因此无法解析导入.因此,让我们尝试添加它.首先单击 + ,然后要求我们提供python sdk根目录.这是在我的Mac上:

Now I have already added a python script to the project: but the imports are unresolved since no python sdk is defined. So let's try to add it. First click o the + and we are asked for the python sdk root directory. Here it is on my mac:

我点击打开":

但是随后 什么都没有 发生.没有错误消息..,也没有新的 python SDK.那么,在这里安装python的特殊调味料是什么?

But then nothing happens. No error messages .. but also no new python SDK. So what's the special sauce to get python onboard here?

推荐答案

对于SDK位置,请选择实际的python可执行文件而不是目录.

For the SDK location choose the actual python executable instead of the dirctory.

这篇关于无法将python SDK添加到Intellij IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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