[EC2] How to deal with errors that selenium cannot execute (No module named selenium)

[EC2] How to deal with the error (No module named selenium) that selenium cannot be executed in python

error contents

#Execution content
$python filename.py

#error
ImportError: No module named selenium

Even though selenium is already installed, it says no module.


## approach Run with `python3`.
$python3 filename.py

Since the installed python is 3 series, use the ** python3 ** command. In the first place, ** selenium is also installed ** with pip3.


▼ [Supplement] The pip command cannot be used (pip3 must be)
$ pip install selenium
-bash: pip: command not found

Recommended Posts

[EC2] How to deal with errors that selenium cannot execute (No module named selenium)
[Python] How to deal with module errors
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
How to deal with DistributionNotFound errors
How to deal with enum compatibility errors
How to deal with errors when hitting pip ②
How to deal with run-time errors in subprocess.call
How to deal with module'tensorflow' has no attribute'〇〇'
How to deal with SessionNotCreatedException when using Selenium
For beginners, how to deal with common errors in keras
How to deal with imbalanced data
How to deal with imbalanced data
[EC2] How to run selenium webdriver
How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook
How to deal with errors when installing whitenoise and deploying to Heroku
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
How to deal with errors when installing Python and pip with choco
How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
[EC2] How to take a screen capture of your smartphone with selenium
Suddenly with Python PyInstaller No module named pyinstaller
How to deal with memory leaks in matplotlib.pyplot
can't pickle annoy. How to deal with Annoy objects
No module named'distutils.util' cannot be used with get-pip.py
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
How to create random numbers with NumPy's random module
[systemd] How to deal with the problem that fancontrol does not work after suspending
How to deal with "Type Error: No matching signature found" error when using pandas fillna
No module named What to do if you get'libs.resources'
How to deal with Django's Template Does Not Exist
How to deal with pyenv initialization failure in fish 3.1.0
[Python] How to deal with pandas read_html read error
How to resolve SSL module errors in Anaconda environment
How to switch to smartphone mode with Python + Selenium + Chrome
How to deal with Executing transaction: failed in Anaconda
How to operate Firefox with selenium on Windows Memo
How to deal with the phenomenon that Python (Jupyter notebook) executed on WSL becomes Aborted
How to deal with the problem that pandas 1.1.0 or later build fails on Alpine Linux
How to deal with the error that Docker's MySQL container fails to start on Docker Toolbox
[VLC] How to deal with the problem that it is not in the foreground during playback
How to debug selenium
How to not load images when using PhantomJS with Selenium
How to manipulate the DOM in an iframe with Selenium
[Linux] How to deal with garbled characters when viewing files
[AWS] How to deal with "Invalid codepoint" error in CloudSearch
After installing pygame with conda install No module named font
A story about how to deal with the CORS problem
How to scrape at speed per second with Python Selenium
How to deal with UnicodeDecodeError when executing google image download
How to output additional information when logging with python's logging module
How to deal with the problem that the current directory moves when Python is executed from Atom