I've written a Python application with Python 2.7 using PyDev for Eclipe, where the script executes perfectly. However, if I try to run it on the command line, I get the following error:
importError: No module named openpyxl
openpyxl is one of the external libraries I use in my application. I searched for solutions and found multiple threads, some of which on this site. All of them handled modules that were created by the programmer himself and requires appending the src folder to the path. This doesn't work for me. I also tried adding the site package directory to my Python Path, but still the error remains.
Also, the script that is run (main.py) is located in the src directory, like so:
/Crawler/
/src
__init__.py
main.py
/Crawlers
__init__.py
Crawler1.py
Crawler2.py
How do I configure my script so it finds all external libraries when executed from the command line?