I am a beginner, I apologize in advance for any ambiguity in my explanation
Python: Python 3.7.4
Console used: Anaconda Command Prompt
Info: I am using a work computer and work network, which has a firewall preventing me from using "pip" commands to install anything. I downloaded Selenium from their webpage
Description of the problem
I have a python script that utilizes Selenium to web-scrape a website. Every time I restart my computer and I launch the script, I get ImportError: No module named 'selenium'
The temporary solution I have found for this problem is running the setup.py
script within the Selenium folder, and then running the install
command.
However, this temporary solution is problematic as I wish to start the script at a predetermined time using TASK SCHEDULER. From my futile attempts, when I try to run the original script via TASK SCHEDULER (no .bat file, but the .py file), I get the problem stated in the title, despite having "installed" the setup.py
previously.
Does anyone know what this problem is due to? I have tried changing the location of the Selenium Folder to no avail.
FYI: The file path where I have saved all Selenium related files is ('X's used for confidentiality reasons):
F:\DEFI-TAU-CLI-XXX-FCE-XXX\XXX_XX_XXXX\XX XXXXX XXXXXXXX\Scraping Python\PYTHON - Code XXXX\Selenium\selenium-3.141.0