NameError: name "webdriver" is not defined
Question: I have create a python script which requires the webdrive. In my code I have
imported it like so, `from selenium import webdriver`.

I went to their website
[here](https://pypi.python.org/pypi/selenium#downloads) downloaded and ran
setup.py but still does not import it. I don't know if this helps but I have
python 2.7, I also do not have installed pip.


Answer: This means that you have installed `selenium`, but interpreter can not find
`webdriver` folder inside. Please use :

    
    
    import selenium
    selenium.__file__
    

in `Python2.7` shell to find out a path to exact `selenium` folder that you
import. If it not located in `C:\Python27\Lib\site-packages` (default Windows
path for new package installation) then delete it or rename (if you don't
really need it). Or just download `selenium` from another source

