Using PyCharm community edition and Python 2.7,
import traceback
import sys
No problem on the first line, which implies that I have pointed PyC
I had this problem as well and was completely stymied until I tried the following:
File ->
Default Settings ->
Project Interpreter
dropdown (click the arrow) ->
Show All ->
select your interpreter ->
Show Paths
(bottom icon on right) ->
Add Path ->
Enter path to libraries
(in my case this was c:\Python35\Lib).