如何将解释器添加到PyCharm? [英] How can I add interpreter to PyCharm?

查看:166
本文介绍了如何将解释器添加到PyCharm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在编辑器中运行代码时,它说没有可用的解释器.请帮助.如何解决此问题?

解决方案

只需阅读PyCharm的文档.

https://www.jetbrains.com/pycharm/quickstart/configuring_interpreter.html

逐步:

  1. 转到Settings.
  2. 转到Project Interpreter部分.
  3. 单击加号(+)按钮,然后选择Local选项.
  4. 搜索解释器,在Linux中,它通常位于/usr/bin/python/usr/bin/pythonX.Y中,其中X和Y是版本.在Windows中,它通常位于C:\python中.
  5. 最后一步,保存设置,您已经配置了解释器.

PD:如果您在Linux上安装了python,并且正在使用Windows,则可以从此处下载: https://www.python.org/downloads/windows/

When I try to run code in editor,it says that there is no available interpreters.Please,help.How can I solve the problem?

解决方案

Just read the PyCharm's Docs.

https://www.jetbrains.com/pycharm/quickstart/configuring_interpreter.html

Step by step:

  1. Go to Settings.
  2. Go to the section Project Interpreter .
  3. Click on the plus (+) button and select the Local option.
  4. Search for the interpreter, in Linux it is used to be in /usr/bin/python or /usr/bin/pythonX.Y where X and Y are the version. In Windows, it is used to be in C:\python.
  5. Last step save the settings and you have configured the interpreter.

PD: If you are on Linux python is installed and if you are using Windows, you can download from here: https://www.python.org/downloads/windows/

这篇关于如何将解释器添加到PyCharm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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