I was trying to install python-selenium binding, somebody told me to execute below command but i was not aware where to execute, so while executing below command i was getting this error
>>> pip install selenium
File "", line 1
pip install selenium
^
SyntaxError: invalid syntax
>>> pip
Traceback (most recent call last):
File "", line 1, in
NameError: name 'pip' is not defined
However i tried to search pip jar, but not found however able to find pip.exe file in installation folder of PYTHON. It was found at "C:\Users\*****\AppData\Local\Programs\Python\Python37-32\Scripts"
So now open CMD, move to above directory ( using cd batch command ) upto script (* it could be different in your case) and execute below command:
C:\Users\*****\AppData\Local\Programs\Python\Python37-32\Scripts>pip install selenium
Collecting selenium
Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
100% |████████████████████████████████| 911kB 3.9MB/s
Collecting urllib3 (from selenium)
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
100% |████████████████████████████████| 122kB 3.6MB/s
Installing collected packages: urllib3, selenium
Successfully installed selenium-3.141.0 urllib3-1.24.1
You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
>>> pip install selenium
File "
pip install selenium
^
SyntaxError: invalid syntax
>>> pip
Traceback (most recent call last):
File "
NameError: name 'pip' is not defined
However i tried to search pip jar, but not found however able to find pip.exe file in installation folder of PYTHON. It was found at "C:\Users\*****\AppData\Local\Programs\Python\Python37-32\Scripts"
So now open CMD, move to above directory ( using cd batch command ) upto script (* it could be different in your case) and execute below command:
C:\Users\*****\AppData\Local\Programs\Python\Python37-32\Scripts>pip install selenium
Collecting selenium
Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
100% |████████████████████████████████| 911kB 3.9MB/s
Collecting urllib3 (from selenium)
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
100% |████████████████████████████████| 122kB 3.6MB/s
Installing collected packages: urllib3, selenium
Successfully installed selenium-3.141.0 urllib3-1.24.1
You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
No comments:
Post a Comment