I want to install Selenium so that I can run a script (that I wrote on my windows machine) on the ubuntu machine.
- When I type in
python --versionI getPython 3.4.3 - When I type in
python3 --versionI getPython 3.4.3 - When I type in
python3.7 --versionI getPython 3.7.0
Side question... how do I default python to version 3.7?
Now main problem. When I type python3.7 -m pip install --upgrade pip (something that I guess I need to do to install modules for python 3.7) I get error output:
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 59, in <module>
from pip.log import logger
File "/usr/lib/python3/dist-packages/pip/log.py", line 9, in <module>
import colorama, pkg_resources
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/pkg_resources.py", line 1479, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
Maybe I'm going about it totally the wrong way? My goals are:
Default python to 3.7
Install Selenium using pip for python 3.7
- Run a python script saved to a file
Questions I already found but didn't help: