PyCharm 4.5 Python控制台错误

时间:2015-10-22 11:21:10

标签: python pycharm

我有一个Jetbrains PyCharm 4.5 IDE。我刚开始在PyCharm上学习Python 3,并在我的PyCharm IDE中将Python解释器配置为3。 但每次我点击Python控制台时,都会收到以下错误:

请帮助!!

C:\Python31\python.exe -u D:\Program Files (x86)\JetBrains\PyCharm 4.5.4\helpers\pydev\pydevconsole.py 59050 59051

PyDev console: starting.

import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend([])

Traceback (most recent call last):
  File "D:\Program Files (x86)\JetBrains\PyCharm 4.5.4\helpers\pydev\pydevconsole.py", line 204, in process_exec_queue
    if callable(code_fragment):

NameError: global name 'callable' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):

  File "D:\Program Files (x86)\JetBrains\PyCharm 4.5.4\helpers\pydev\pydevconsole.py", line 488, in <module>
    pydevconsole.StartServer(pydev_localhost.get_localhost(), int(port), int(client_port))

  File "D:\Program Files (x86)\JetBrains\PyCharm 4.5.4\helpers\pydev\pydevconsole.py", line 334, in StartServer
    process_exec_queue(interpreter)

  File "D:\Program Files (x86)\JetBrains\PyCharm 4.5.4\helpers\pydev\pydevconsole.py", line 217, in process_exec_queue
    traceback.print_exception(type, value, tb, file=sys.__stderr__)

UnboundLocalError: local variable 'traceback' referenced before assignment
Process finished with exit code 1

0 个答案:

没有答案