在 PyCharm 社区版中运行 Python 3 解释器 [英] Running Python 3 interpreter in PyCharm Community Edition

查看:74
本文介绍了在 PyCharm 社区版中运行 Python 3 解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是从 Wing 转来的 PyCharm 新用户.

I am a new PyCharm user who switched from Wing.

在 Wing 中,如果我将 Wing 配置为使用Python3"解释器,则控制台也将运行 Python3.但是,在 PyCharm 社区版中,即使我将项目配置为使用 Python 3.4 解释器,控制台仍然会使用 2.7.5.(该程序在 Python 3.4 上正常运行)有没有办法可以在 Python3 中使用控制台.

In Wing, if I configure Wing to use the "Python3" interpreter, the console would also run Python3. However, in PyCharm Community Version, even if I configure the project to use the Python 3.4 interpreter, the console would still use 2.7.5. (The program runs properly with Python 3.4) Is there a way that I can use the console with Python3.

平台:Mac OS X 10.7.5已安装 Python 2.7.5 和 3.4.

Platform: Mac OS X 10.7.5 Python 2.7.5 and 3.4 installed.

谢谢!

推荐答案

当您转到 Settings > 时控制台 >Python 控制台您可以为您的控制台选择标准解释器.

When you go to Settings > Console > Python Console you can choose the standard interpreter for your console.

标准是您在 Settings > 下选择的 Project Interpreter.项目解释器.不要忘记重新启动 Pycharm.

The standard there is the chosen Project Interpreter you select under Settings > Project Interpreter. Don't forget to restart Pycharm.

或者您可以为每个项目分配不同的解释器.转到<代码>设置>项目:我的项目 >项目口译员.

Or you can assign a different interpreter to each project. Go to Settings > Project:myproject > Project Interpreter.

这篇关于在 PyCharm 社区版中运行 Python 3 解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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