1

This blog details the steps to installing Selenium for use with Python. I don't understand what he means by "use pip command below to install selenium"?

C:\seltests\selenv\Scripts\pip.exe install selenium

There's no pip.exe in that folder. Do I have to use this stackoverflow to install pip?

baijum, if you're reading this, please clarify this part on your blog. Others on my team are not seeing pip.exe in the Scripts folder either!

I found this stackoverflow article where the previous step was unclear but this article doesn't address the missing pip.exe issue.

Community
  • 1
  • 1
StacyM
  • 1,008
  • 5
  • 21
  • 41
  • That's not a blog. It's the documentation for the package. I would just run `easy_install pip` and then `pip install selenium` (assuming Python is correctly added to your PATH). – Blender Sep 07 '13 at 02:18
  • I used this [pip win tool](https://sites.google.com/site/pydatalog/python/pip-for-windows). Is this an appropriate alternative to easy_install? I found it from this [popular pip Python article](http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows). – StacyM Sep 07 '13 at 02:22
  • It replaces `easy_install`. – Blender Sep 07 '13 at 02:24
  • Ok I ran the pip win tool with this command: pip install -U selenium. How do I test to make sure this worked? – StacyM Sep 07 '13 at 02:26
  • It did not work. I ran the following: C:\seltests\selenv\Scripts\python.exe C:\seltests\my_selenium_script.py command and got ImportError: No module named selenium – StacyM Sep 07 '13 at 02:50
  • Then you didn't install Selenium. Run pip from a shell and see what errors you get. – Blender Sep 07 '13 at 02:52
  • I didn't install pip. I'll try this now using the first post with 222 points in [this article](http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows). – StacyM Sep 07 '13 at 03:00
  • I'm stuck at this part: "For me, this installed Pip at C:\Python27\Scripts\pip.exe. Add your analogue of C:\Python27\Scripts to your path (Start / Edit environment variables). Now you should be able to run pip from the command line. Try installing a package:" What do they mean by "add your analogue of C:\Python27\Scripts to your path"? – StacyM Sep 07 '13 at 03:09
  • See this: http://docs.python.org/2/using/windows.html#configuring-python. Just add `;C:\Python27;C:\Python27\Scripts` to the `PATH` variable and you'll be able to run the scripts from a command prompt. – Blender Sep 07 '13 at 03:10
  • [Posting this Windows 7 article on environment variables to help others](http://www.itechtalk.com/thread3595.html). – StacyM Sep 07 '13 at 03:16
  • Ugh. I get this in CMD prompt when I try to run pip.exe install selenium. "Requirement already satisfied (use --upgrade to upgrade): selenium in c:\python27\lib\site-packages Cleaning up..." – StacyM Sep 07 '13 at 03:22
  • Same ImportError: No module named selenium when I tried to run a simple .py script. – StacyM Sep 07 '13 at 03:27
  • [How does this make any sense - img of both errors?](http://imgur.com/YXYsgU1) – StacyM Sep 07 '13 at 03:37
  • What does `where python` output? Are you actually running Python 2.7? – Blender Sep 07 '13 at 03:44
  • I figured it out. My scripts were not in the same folder structure to which I installed Selenium. I installed easy_install, pip and then selenium in the Python27 folder structure. I should have been running my scripts from there, rather than from the seltests folder structure. The selenium-python documentation really needs to clarify how to install pip correctly. That would have helped a lot instead of just saying C:\seltests\selenv\Scripts\pip.exe install selenium. – StacyM Sep 07 '13 at 03:52

0 Answers0