每次加载项目时,PyCharm 都会要求 Python 解释器 [英] PyCharm asks for python interpreter every time project is loaded

查看:93
本文介绍了每次加载项目时,PyCharm 都会要求 Python 解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

令人沮丧的是,每次我加载现有项目或创建新项目时 - 它都会抱怨没有选择解释器,我必须提供它的路径.

我的 python 安装没有什么异常,正如您所期望的那样,它位于 C:/Python27/中.它过去一直有效,但最近几周发生了一些变化.

我正在运行 Win7.PATH 系统变量应该指向 C:/Python27/.

如果我打开命令行,python 命令会正常打开.

有什么想法吗?

解决方案

设置 IDE 默认解释器解决了这个问题,正如 Vadim 提到的.在此处找到了有关如何执行此操作的说明.

<块引用>

文件 |默认设置 |项目口译员.

此配置为新项目设置默认解释器,注意 Default Settings 菜单,它与 File | 不同.设置为当前项目设置选项.

不完全确定为什么未设置默认值,但至少现在我可以再次设置它.项目默认设置也被忘记了,这很奇怪,但改天再问.

感谢 SO 在 14 分钟内帮助解决了一个问题,而这可能需要花半天时间浏览网络或等待支持请求.

Rather frustratingly, every time I load up an existing project or create a new one - it complains there is no interpreter selected and I have to provide the path to it.

There is nothing unusual about my python installation, it's sat in C:/Python27/ as you would expect. It always used to work, but the last few weeks something has changed.

I'm running Win7. PATH system variable points to C:/Python27/ as it ought to.

If I crack open commandline, the python command opens as it ought to.

Any ideas?

解决方案

Setting the IDE default interpreter fixed the problem, as Vadim mentioned. Found instructions on how to do that here.

File | Default Settings | Project Interpreter.

This configuration sets the default interpreter for the new projects, note the Default Settings menu, it's not the same as File | Settings which sets options for the current project.

Not entirely sure why the default was unset, but at least now I can set it back again. The project default setting was being forgotten as well which is curious, but a problem for another day.

Thank you SO for helping to solve a problem in 14 minutes, which would have taken half a day trawling through the web or waiting for supporting requests.

这篇关于每次加载项目时,PyCharm 都会要求 Python 解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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