Выслушайте меня: совсем новичок в Python. Возможно, я где-то напутал.
Вот сообщение об ошибке полностью:
Код: Выделить всё
Traceback (most recent call last):
File "webScrapingTool.py", line 1, in
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
Keep in mind that I have tried both 'pyinstaller' and 'auto-py-to-exe' on Ubuntu and I tried 'pyinstaller' on Windows too. When I create the executable in Windows, it will show the error message as above.
As mentioned, I am almost brand new to Python and I did a pretty basic project, but I really need to know what the issue is with finally making my file executable/usable for the average person.
When I try to do "pip install cx_freeze" or to install the 'requirements.txt' with pip, I get the error message like this:
https://pastebin.com/KheA21nM
The leads that I can give with this are that I'm almost certain that it is associated with where the program was written versus where the executable is being made (two different Python versions). I have seen a few pages that mentioned 'hiddenimports' in the .spec file, but no luck from what some suggested. Hopefully somebody knows exactly what I mean because while there are similar questions here, none of them are exactly like my situation here. Please let me know of anything that I can do to fix this. Thanks!
Источник: https://stackoverflow.com/questions/780 ... error-no-m