After extracting .tar.gz and running python setup install, selenium gets installed in,
....
creating /usr/local/lib/python2.7/dist-packages/selenium-3.4.3-py2.7.egg
Extracting selenium-3.4.3-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding selenium 3.4.3 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/selenium-3.4.3-py2.7.egg
.....
On running,
python functionalTest.py
it works fine
But
python3.6 functionalTest.py
gives, error:
ModuleNotFoundError: No module named 'selenium'
because I could not install selenium using python3.6 on Ubuntu, successfully, as shown below,
$ ls setup*
setup.cfg setup.py
$ python3.6 setup install
python3.6: can't open file 'setup': [Errno 2] No such file or directory
$ python3.6 setup.py install
Traceback (most recent call last):
File "setup.py", line 22, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
.....
Original exception was:
Traceback (most recent call last):
File "setup.py", line 22, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
$
Edit:
After installing setuptools, below is the observation,
$ python3.6 setup.py install
.....
creating /usr/local/lib/python2.7/dist-packages/selenium-3.4.3-py2.7.egg
Extracting selenium-3.4.3-py2.7.egg to /usr/local/lib/python2.7/dist-packages
selenium 3.4.3 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/selenium-3.4.3-py2.7.egg
Processing dependencies for selenium==3.4.3
Finished processing dependencies for selenium==3.4.3
$ cd /usr/local/lib/python
python2.7/ python3.5/ python3.6/
$
$ easy_install --version
setuptools 20.7.0 from /usr/lib/python2.7/dist-packages (Python 2.7)
$ pip --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
$
Question:
How to configure for python3.6 to pick selenium? Why selenium is installed in /usr/local/lib/python2.7 despite using python3.6?
python3.6 setup installto install selenium for python3.6 , then try runningpython3.6 setup.py installI get error,ModuleNotFoundError: No module named 'setuptools'from codefrom setuptools import setuppip3 install seleniumorpython3.6 -m pip install selenium, it should work