ImportError: No module named 'selenium'

importerror: no module named py
importerror: no module named mac
importerror: no module named linux
importerror: no module named hvac
importerror no module named name
modulenotfounderror: no module named
python no module named same directory
importerror: no module named requests

I'm trying to write a script to check a website. It's the first time I'm using selenium. I'm trying to run the script on a OSX system. Although I checked in /Library/Python/2.7/site-packages and selenium-2.46.0-py2.7.egg is present, when I run the script it keeps telling me that there is no selenium module to import.

This is the log that I get when I run my code:

Traceback (most recent call last):
  File "/Users/GiulioColleluori/Desktop/", line 10, in <module>
    from selenium import webdriver
ImportError: No module named 'selenium'

If you have pip installed you can install selenium like so.

pip install selenium

or depending on your permissions:

sudo pip install selenium

As you can see from this question pip vs easy_install pip is a more reliable package installer as it was built to improve easy_install.

I would also suggest that when creating new projects you do so in virtual environments, even a simple selenium project. You can read more about virtual environments here. In fact pip is included out of the box with virtualenv!

ImportError: No module named 'XYZ', ImportError: No module named 'XYZ'. Jupyter notebook cannot find the package you already installed? Let's solve the problem. I'm getting this problem currently. I have no idea why and I've scoured the internet for a solution. It keeps saying ImportError: No module named site no matter how I install python and what I put into my PATHs. I would like to know how python actually loads Obviously this is a relative/absolute path issue.

For python3, on a Mac you must use pip3 to install selenium.

sudo pip3 install selenium

Traps for the Unwary in Python's Import System, This has changed in Python 3.3: now any directory on sys.path with a name that "<string>", line 1, in <module> ImportError: No module named Registering Spacewalk Client via Rhnreg_ks Fails with "ImportError: No module named rhn.connections" (Doc ID 2681195.1) Last updated on JUNE 22, 2020. Applies to: Linux OS - Version Oracle Linux 6.0 and later Linux x86-64 Symptoms. Registering spacewalk client via Rhnreg_ks fails with "ImportError: No module named rhn.connections"

If you are using Anaconda or Spyder in windows, install selenium by this code in cmd:

conda install selenium

If you are using Pycharm IDE in windows, install selenium by this code in cmd:

pip install selenium

Python error “ImportError: No module named”, To get rid of this error you just need to create in the appropriate directory and everything will work fine. To know more about this you  I am using python 2.7 in Ubuntu 14.04. I installed scikit-learn, numpy and matplotlib with these commands: sudo apt-get install build-essential python-dev python-numpy \\ python-numpy-dev python-s

ImportError: No module named github · Issue #856 · PyGithub , I'm trying to use PyGitHub and I'm getting "ImportError: No module named github". Setup specs: macOS v10.13.6 Python v3.7.0 Installed with  from toolkit.interface import interface ImportError: No module named toolkit.interface I have already checked sys.path and there I have the directory /site-packages . Also, I have the file in the toolkit folder to indicate to Python that this is a package.

Even though the egg file may be present, that does not necessarily mean that it is installed. Check out this previous answer for some hint:

How to install Selenium WebDriver on Mac OS

ImportError: No module named 'fvcore' · Issue #11 , detectron2/detectron2/checkpoint/", line 3, in from fvcore.common.​file_io import PathHandler, PathManager ImportError: No  ImportError: No module named django_extensions . ImportError: No module named django_extensions. 0 votes. I am completely new to python as well as to Django. I got a

How to solve a “no module named” error in Python, make sure that you have typed module name correctly , if it doesn't work, then if ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn'  yeah , i tried this but i got "No module named http" – Phani varma Jun 27 '14 at 5:20 it'll not work for me and more over i am using python 2.7 ,then how can i overcome this problem – Phani varma Jun 27 '14 at 5:32

ImportError: No module named error, import urllib.error ImportError: No module named error[/inline] Could this be a problem with something in the script, or my Python configuration,  ImportError: No module named flask But their solutions aren't helpful. For reference, I do have a folder named flask which one user mentioned may cause issues.

Python can't find my module, How do I fix the ImportError No module named error in Python? Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

  • That didn't work for me. My solution was this: sudo -H pip3 install -U selenium
  • Didn't worked for me
  • this works for me... This should work in 2020 with all python3+ projects
  • I installed it using the command "sudo easy_install selenium" . Is there any other better way I should use to install it?
  • I installed it using the same command and it works for me. If possible, try to re-install it.
  • This helped me the most. I had Selenium installed in a different Python env.
  • I downloaded again selenium from link[/link] but I'm not sure how to install it since I've never installed a .tar.gz on a OSX. Previously, I just installed it using "sudo easy_install selenium" from the terminal. Is there any command to install .tar.gz local files?
  • Now it finds the module but it's reporting another issue. I'm gonna try to work it out. Thanks for now!
  • Could you add some detail on how to do this?
  • !command isn't valid Python. Maybe you are using Jupyter? In any case, OP doesn't appear to be. Please don't assume the tools people are using. At the very least, please specify the libraries you use.