from selenium import webdriver ModuleNotFoundError: No module named 'selenium'

55 views
Skip to first unread message

nod Onamac

unread,
Jul 5, 2021, 11:59:50 PM7/5/21
to Selenium Users
hi All,

Need help.

After I reformat my PC re-install linux mint 20 and everything I encountered this error. Selenium is working properly before I reformat my PC. I already done the fix that is searchable on the web, and still encounter this error. I hope someone has a fix on this.
 
Traceback (most recent call last):
  File "./per_category.py", line 2, in <module>
       from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
[Finished in 150ms with exit code 1]
[cmd: ['python3', '-u', '/home/xxxxxxx/Downloads/per_category.py']]
[dir: /home/xxxxxxxx/Downloads]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

Selenium is installed as check using print(help('modules')).  I did not encounter error by running it directly on terminal.

Python 3.8.10 (default, Jun  2 2021, 10:49:15)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>>
>>> from selenium import webdriver
>>>
Screenshot_2021-07-06_02-09-34.png
Reply all
Reply to author
Forward
0 new messages