简体   繁体   中英

Pycharm is highlighting syntax for python2, but I am using python3

I am using pycharm community edition 2017.1.5 and I have some problem....

I am working in Python 3.6.1 but PyCharm is highlighting for python2.

For example he is not allowing me to use print() function, because he is detecting print statement there. (That mean that it is only about syntax, because he know print() function but when I use it he says that it is print statement)

EDIT:

Its not finding print statement from python2 it says: Statement expected, found Py:PRINT_KEYWORD and it doesn't work like python2 print

EDIT 2:

I don't know why but when I disable Pyxl plugin it is working correctly

You can configure python interpreter for PyCharm in Settings > Project Interpreter. Or to reconfigure default interpreter Settings > Default Project > Project Interpreter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM