I have two pure python projects in PyCharm 3.4.1 Professional Edition. The first one, let\'s call it p
(like package), is structured as a setuptools package (i.
I had a devil of a time getting PyCharm to recognize a class in a module that I had just written.
The problem is that PyCharm seems to default to not importing module class paths, which requires two separate fixes to correct.
Right click on the module name, and mark it as "Source":
For some reason, by default in PyCharm, it does not actually add directories marked as "Sources Root" to the Python path. Fix this by switching this on.
Notice the "Starting Script" in the image above. I assume that manually adding these lines to your Python script would also achieve the same result.