Reputation: 47
I've done a pip install docx and from what I can see this was created on:
C:\Users\USERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages
Running import docx results in a "No module named 'docx'" error, so I checked the Python Path on Pyscripter, which is taking the libraries from
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\site-packages
I tried adding/replacing the path then running the script again, and for whatever reason PyScripter is defaulting the original path back and the import error persists.
Not sure if I'm missing something fundamental from running PyScripter and Python 3.12 is the only one installed on my computer.
Upvotes: 0
Views: 36