Reputation: 25
I'm trying to install Selenium using pip. But when I go to my editor (pycharm CE running on 3.8) no such module exists. When I type python -version on terminal it comes up with python 2.7 with a deprecation warning. How to I change this? I'm pretty sure I have to change my path or something like that, but how? Any help is greatly appreciated.
Upvotes: 0
Views: 198
Reputation: 6344
That's because python2.7 is installed by default on Mac. Python3.8 is probably installed besides 2.7. Use python3.8
command and python3.8 -m pip install selenium
to install selenium for this specific python version. If pip is not installed for python3.8, install it the official way.
Don't replace system python, because that might break your OS.
Upvotes: 1