Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the Python 2 Preference in PyCharm?

Tags:

python

pycharm

PyCharm is a good IDE, but its code hinting is not so intelligent. For example, when I use it to write Python2 code (the setting of my interpreter path can tell PyCharm this), I type prin, which I want PyCharm to give me a hint of print, however, the first prompt is print(), which is a Python3 style of function print. Is there any setting in PyCharm that I can tell it not to give me Python3 prompt when I am writing Python2 code (and not to give me Python2 prompt when I am writing Python3 code)?

My PyCharm version is 2.7.1

like image 977
DeepMind Avatar asked Apr 06 '13 01:04

DeepMind


1 Answers

Perhaps, you should select python 2.x interpreter for the project (File Menu - Settings - Project - Project Interpreter).

like image 92
monoid Avatar answered Oct 14 '22 13:10

monoid