I have used this approach to transfer data between PHP and PYTHON: executing Python script in PHP and exchanging data between the two
The problem I am facing is that python return null whenever I load external libraries. This is the part of my python script
import docx2txt
import re
import os
from odf.opendocument import load
import nltk
import pandas as pd
import csv
'''
some_code_here
'''
I have tested my python script, whenever I load external libraries (like import docx2txt), my python script returns null. I am using python version 3.4 and php version 7.2.1