PyCharm未检测到口译员 [英] PyCharm doesn't detect interpreter

查看:103
本文介绍了PyCharm未检测到口译员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程的新手,刚刚开始学习Python.我想使用PyCharm,所以我下载并安装了它(v.4.5,社区版).我以前曾从python.org安装了Python 3.5 64位(我正在使用Windows 10).

I'm new to programming and just started a course on Python. I want to use PyCharm, so I downloaded and intalled it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from python.org (I'm using Windows 10).

要开始使用PyCharm,我需要一个项目解释器,可以在设置中选择它.就我而言,解释器是"py.exe",但是当我选择它时,我收到以下错误消息:所选文件不是Python SDK的有效主目录".我还尝试使用每个名称包含"python"或"py"的文件,但均失败.

To start using PyCharm, I need a project interpreter, which I can select in the settings. As far as I'm concerned, the interpreter is "py.exe", but when I select it, I get this error message: "The selected file is not a valid home for Python SDK". I also tried to use every file whose name contained "python" or "py", and failed.

在我看到的每个网站和视频上,他们都选择一个名为"python.exe"的文件,但它们使用的是Python 3.4或更早的版本.我检查了PyCharm是否支持3.5("Python 3.5的初始支持").

On every website and video I see, they select a file called "python.exe", but they're using Python 3.4 or a previous version. I checked that PyCharm supports 3.5 ("Initial support for Python 3.5").

我在做错什么吗?我应该怎么做才能使用PyCharm?

Is there anything I'm doing wrong? What should I do to be able to use PyCharm?

所有回复均感激不尽.预先感谢.

All replies are appreciated. Thanks in advance.

推荐答案

文件>新项目设置>项目解释器>单击下拉列表并选择'显示全部'>单击'+'按钮>

file > new project settings > project Interpreter > click in the drop down and select 'show all' > click the '+' button >

现在,在新环境"单选按钮下的"Virtualenv Environment"选项卡中,检查基础解释器:"字段中的路径.对我来说,我的设置为无效路径.一旦我纠正了指向python.exe的路径,便重新创建了新项目,PyCharm构建了virtualenv.

Now, in the Virtualenv Environment tab under the New environment radio button, check the path in the 'Base interpreter:' field. For me, mine was set to an invalid path. Once I had corrected the path to point to python.exe I recreated my new project and PyCharm built the virtualenv.

对我来说,还有更多......创建新项目时,我扩展了下拉列表,并且必须验证创建venv目录的目录.一旦我纠正了此处的路径,就必须单击一下以使它能够创建项目.

For me there was a bit more too.... When creating the new project I expanded the drop down and had to verify the directory where the venv directory was being created. Once I had corrected the path here I had to click around a bit to get it to let me create the project.

我要把它当作一个错误.我正在使用社区版.

I'm going to chaulk this up to a bug. I'm using Community edition.

这篇关于PyCharm未检测到口译员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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