Skip to main content

Ubuntu 20.04 : pytest command gives this output -> E ImportError: No module named selenium, even after installing selenium

 Your selenium files will be inside /usr/local/lib/python3.8/dist-packages/

You have to copy and paste them in /usr/local/lib/python2.7/dist-packages/

and /usr/local/lib/python2.7/site-packages/



The main problem is there is python2 and python3 installed in your computer and python2 is actively used by your system now. And selenium is within python3 folder.

Comments

Popular posts from this blog

how to dynamically change favicon in dokuwiki argon template?

 Put <link href="lib/tpl/argon/apple-touch-icon.png?v=<?php echo rand() ?>"> and <link href="lib/tpl/argon/favicon.ico?v=<?php echo rand() ?>"> in if statement and <link href="lib/tpl/argon/images/apple-touch-icon.png?v=<?php echo rand() ?>"> and <link href="lib/tpl/argon/images/favicon.ico?v=<?php echo rand() ?>"> in else if statement. Note: the images should be in 48*48 size. Note: ?v=<?php echo rand() ?> is for busting the cache for favicon alone. Note: You should comment out this block of php code: echo tpl_favicon(array( 'favicon', 'mobile', ))