Reputation: 601
I have followed the instruction from the site: http://selenium-python.readthedocs.org/en/latest/installation.html
I followed the section : Detailed instructions for Windows users:
completed step-1- by downloading and installing it (python-2.7.3.msi) to my windows . Now i got confuesd about the 2nd step. What i need to i can't understand ,i just downloaded the "pypa-virtualenv-1.8.1-74-g2adac08.tar.gz" and unzipped it to the folder "D:\Python and Selenium". Both the step-1 mentioned MSI .exe file and this .zip file present in the same directory as I just mentioned.
I also tried the below ,but got errors:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Arup Rakshit>cd..
C:\Users>cd..
C:\>d:
D:\>cd D:\Python and Selenium\pypa-virtualenv-2adac08
D:\Python and Selenium\pypa-virtualenv-2adac08>pip install https://github.com/py
pa/virtualenv/tarball/develop
'pip' is not recognized as an internal or external command,
operable program or batch file.
D:\Python and Selenium\pypa-virtualenv-2adac08>
Can you now guide me to install it on my PC succesfully?
UPDATE
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Arup Rakshit>cd..
C:\Users>cd..
C:\>cd Python27
C:\Python27>cd python.exe
The directory name is invalid.
C:\Python27>python.exe virtualenv.py selenv
python.exe: can't open file 'virtualenv.py': [Errno 2] No such file or directory
C:\Python27>
C:\Python27>
Upvotes: 0
Views: 1960
Reputation: 320
You need to have this file in your folder:
And then with the command line run:
C:\Python27\python.exe virtualenv.py selenv
After that you will have a subfolder named "selenv". With the command line run :
selenv\Scripts\pip.exe install selenium
And check if you can run your python-selenium scripts with selenv\Scripts\python.exe my_selenium_script.py
Note that you need to use the full path to pip , since you do not have it in the windows PATH
Upvotes: 2