I
I
IVBAN2018-10-01 09:45:55
Django
IVBAN, 2018-10-01 09:45:55

How to install python-docx and use it in Django?

Transferred from another computer to a new one and launched a test server.
At startup, it writes errors when connecting the docx module.
Like it doesn't exist:
File "E:\Games\isaus\isaus\mainapp\urls.py", line 4, in
from . import views
File "E:\Games\isaus\isaus\mainapp\views.py", line 32, in
from docx import Document
File "C:\Users\acpp-\AppData\Local\Programs\Python\Python36-32\ lib\site-packages\docx.py", line 30, in
from exceptions import PendingDeprecationWarning
ModuleNotFoundError: No module named 'exceptions'
Although I installed it the same way as before, it is in this folder. What is the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question