AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install selenium python mac5/13/2023 Ready! Now your Python interpreter should find the module. In VS Code you change the interpreter here (at the bottom left corner of the screen) You have to install selenium in the same directory to the Python version you're using or change the interpreter to match the directory where Selenium is installed. you won't find Selenium installed here and that's why the module isn't found. For instance: /Library/Python/3.8/site-packages. But you're probably running a version of Python, in which you didn't install Selenium.You installed Selenium in this folder /Library/Python/2.7/site-packages and selenium-2.46.0-py2.7.egg.Other answers talk about installing Selenium, but it's clear to me that you've already did that, but you still get the ImportError: No module named 'selenium'. I had the exact same problem and it was driving me crazy (Windows 10 and VS Code 1.49.1) In fact pip is included out of the box with virtualenv!įor python3, on a Mac you must use pip3 to install selenium. You can read more about virtual environments here. I would also suggest that when creating new projects you do so in virtual environments, even a simple selenium project. If you have pip installed you can install selenium like so.Īs 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.
0 Comments
Read More
Leave a Reply. |