Selenium Error
Gona2119 opened this issue · 14 comments
Hi! I've got the following error: "line 1, in <module> from selenium import webdriver ModuleNotFoundError: No module named 'selenium'
any solutions? Also I've already run the command pip install -r requirements.txt. Ty
Check if your Python and pip environments are pointing to the same place, I feel like you have installed the requirements in an environment and trying to execute the code with another
Can you show the output of this command?
pip freeze
It will tell you which libraries you have installed in your environment
I searched for this error which will probably help you more than me: https://stackoverflow.com/questions/31147660/importerror-no-module-named-selenium
Let me know if it works
Do you have chromedriver too? Looks like you have selenium installed, it's weird that it wouldn't find the reference in the module. You can try download conda and create a new clean environment and test again
Wait, you're executing with python3, not python
There it is! Worked after changing python3 to python. It's strange bc that says in the how to use instructions, but worked. Ty man
Great! Yes, it's usually because when the change was made between Python 2 and 3, many people in their instructions (including me) made a differentiation between Python 2 and 3 to avoid people's confusions
But since we've been having Python 3 for a while, nobody is having this issue at the moment. It will possibly happen again on the change to Python 4
(some Python history for you @Gona2119 )
Nice to know some Python history, and btw cool proyect. Do you are currently studying any carreer or do you have any degree?
Yes, I did my major on Computer Engineering and I've been working on AI/ML for about 4 years. You can find everything I have done in my readme: https://github.com/jasperan including other projects, workshops, hands-on labs, YouTube podcasts, video replays, and some pictures of me
Despues de leer un rato ví que eras de España jajajs. Muy interesante tus estudios y eso, justamente también estoy estudiando con 20 años Ingeniería en computación en Argentina pero recien en mi segundo año académico y arrancando programación orientada a objetos asi que soy muy nuevo en todo esto porque venia acostumbrado a la programacion iterativa en C y Processing pero nada de Java. Mucha suerte en todos tus proyectos y a seguir asi por más. Gracias por toda la ayuda :)