For admin reasons I can't edit the PATH variable so I couldn't use pip to install my PyPi and 3rd party libraries/modules, so I worked around it and I installed their source code using the official download from PyPi.com
All went well with the PyPDF2 module, but the docx module just won't get imported in my script. The folder is saved in the same location as the main script and the PyPDF2 library. This is the code I used to make sure that the correct path was added to the main script:
import re, sys, os
os.chdir(r"\\WWG00M.ROOTDOM.NET\AFS-HOME5\GDOVERI\ICM\Desktop\PDF_Compare")
sys.path.insert(0, os.path.abspath(r'\\WWG00M.ROOTDOM.NET\[...]\PyPDF2-3.0.1'))
sys.path.insert(0, os.path.abspath(r'\\WWG00M.ROOTDOM.NET\[...]\python_docx-1.1.2'))
sys.path.append(r'\\WWG00M.ROOTDOM.NET\[...]\python_docx-1.1.2')
import PyPDF2
import docx
I added those sys.path lines because otherwise the script fails to import the modules, but I can't get to import the docx one even after adding sys.path.insert and sys.path.append.
What am I missing here?