PyCharm Not finding modules

I am running PyCharm 5 on Win7

I have installed Selenium module.

In PyCharm under site packages Selenium is listed.

If I run the code 

from selenium.webdriver.common.keys import Keys

I get the message

Traceback (most recent call last):
File "D:/Python_Projects/Sandbox_3_5/selenium.py", line 1, in <module>
from selenium.webdriver.common.keys import Keys
File "D:\Python_Projects\Sandbox_3_5\selenium.py", line 1, in <module>
from selenium.webdriver.common.keys import Keys
ImportError: No module named 'selenium.webdriver'; 'selenium' is not a package

Process finished with exit code 1

If I run the same code within Idle it runs without fault.

It seems Pycharm is not finding the module even though its listed in SitePackage.

I am not using a virtualenv

Please can you help?

 

 

Please sign in to leave a comment.