'No Module Named cx_Oracle

I created and execute a python script using PyCharm with Cx_Oracle module and it is working (able to select from an oracle table) but when I tried to use .bat file to execute the same python script, error below is showing. ModuleNotFoundError: No module named 'cx_Oracle'

Note that the same script is working using PyCharm but not error when using .bat

bat script:

python C:\Users\rtorreverde\PycharmProjects\TableToBusinessTerm\testargv.py
pause

.py absolute path:

C:\Users\rtorreverde\PycharmProjects\TableToBusinessTerm\testargv.py

error message:

Error message



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source