Pycharm无法将解释器从python 2.7更改为3.4 [英] Pycharm can't change interpreter from python 2.7 to 3.4

查看:91
本文介绍了Pycharm无法将解释器从python 2.7更改为3.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Pycharm在Xubuntu Linux 3.19.0-51-通用x86_64上从事开源Python项目的工作. 即使我的项目要求使用Python 3.4或更高版本,IDE仍会强制该项目使用Python 2.7.我试图从项目解释器"菜单中更改解释器(请参见屏幕截图),并且甚至从项目解释器"菜单中删除了Python 2.7条目..全部无济于事.我已经附上了Project Interpreter菜单的屏幕截图,这是调试器会话的第一行,以说明问题:

Im currently working on an open source Python project on Xubuntu Linux 3.19.0-51-generic x86_64 using Pycharm. Even though I my project requires Python 3.4 or greater, the IDE seems to force the project to use Python 2.7. I've tried to change the interpreter from the Project Interpreter menu (see screenshot), and went so far as to remove the Python 2.7 entry from the Project Interpreter menu..All to no avail. I have attached a screenshot of Project Interpreter menu and here is the first line of my debugger session to illustrate the problem:

/usr/bin/python2.7 /home/bluejay/pycharm/pycharm-community-2016.2.1/helpers/pydev/pydevd.py --cmd-line --multiproc --qt-support --client 127.0.0.1 --port 45167 --file /root/PycharmProjects/anki/runanki

我们非常感谢您的帮助!

Any help is vastly appreciated!

推荐答案

尝试以与主菜单->运行->编辑配置...

Main Menu -> Run -> Edit Configurations...

这篇关于Pycharm无法将解释器从python 2.7更改为3.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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