如果PyCharm本身搜索python解释器?

时间:2017-07-30 04:16:51

标签: pycharm

当我在PyCharm中设置python解释器时,会列出几个python解释器。

enter image description here

那么,如果PyCharm在设置Python解释器时搜索了整个计算机?

1 个答案:

答案 0 :(得分:0)

是,

来自社区版源代码https://github.com/JetBrains/intellij-community/blob/172.3652/python/python-community-configure/src/com/jetbrains/python/configuration/PyConfigurableInterpreterList.java#L79-L90

它将搜索所有可能的sdk家庭,并添加检测到的sdk(如果存在)。

for (String sdkHome : SdkConfigurationUtil.filterExistingPaths(PythonSdkType.getInstance(), sdkHomes, getModel().getSdks())) {
  result.add(new PyDetectedSdk(sdkHome));
}