我是Python新手,剛剛爲Windows安裝PyCharm。從Skype下載了一些示例代碼來測試其SkypeKit API。但是......只要我打的調試按鈕,我得到這樣的:(我的Python 2.7和1.4的Django安裝)NameError:名稱'N_TOKENS'未定義
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 2.0.2\helpers\pydev\pydevd.py", line 2, in <module>
from django_debug import DjangoLineBreakpoint
File "C:\Program Files (x86)\JetBrains\PyCharm 2.0.2\helpers\pydev\django_debug.py", line 1, in <module>
import inspect
File "C:\Program Files (x86)\Python27\lib\inspect.py", line 39, in <module>
import tokenize
File "C:\Program Files (x86)\Python27\lib\tokenize.py", line 38, in <module>
COMMENT = N_TOKENS
NameError: name 'N_TOKENS' is not defined
Process finished with exit code 1
這是什麼意思,什麼能做些什麼來解決這個問題?
它可以在http://confluence.jetbrains.net/display/PYH/JetBrains+PyCharm+Preview上使用PyCharm 2.5嗎? – CrazyCoder 2012-04-09 06:12:29
@CrazyCoder得到它在Riaz Rizvi的幫助下工作,所以現在堅持穩定版本。 – BlueVoodoo 2012-04-09 09:33:38