"G:\python cource\project\Word\venv\Scripts\python.exe" "G:\python cource\project\Word\ReadWord.py"
Traceback (most recent call last):
File "G:\python cource\project\Word\ReadWord.py", line 2, in <module>
import docx
File "G:\python cource\project\Word\venv\Lib\site-packages\docx.py", line 30, in <module>
from exceptions import PendingDeprecationWarning
ModuleNotFoundError: No module named 'exceptions'
السؤال
Ahmed Osman11
import docx
from pathlib import Path
doc = docx.document(Path.home()/ Path('G:/python cource','project','word','academy_1.docx'))
print(len(docx.paragraph()))
رسالة الخطأ
"G:\python cource\project\Word\venv\Scripts\python.exe" "G:\python cource\project\Word\ReadWord.py"
Traceback (most recent call last):
File "G:\python cource\project\Word\ReadWord.py", line 2, in <module>
import docx
File "G:\python cource\project\Word\venv\Lib\site-packages\docx.py", line 30, in <module>
from exceptions import PendingDeprecationWarning
ModuleNotFoundError: No module named 'exceptions'
Process finished with exit code 1
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.