我正在尝试使用python和PyQt创建一个简单的程序。由于这个错误,我无法完成我的工作:
string location = Server.MapPath("/exe/");
Document document = new Document(Server.MapPath("/exe/bbbb.docx"));
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);
options.PageCount = 1;
// Save each page of the document as Png.
for (int i = 0; i < document.PageCount; i++)
{
options.PageIndex = i;
document.Save(string.Format(location+ @"\out_{0}.png", i), options);
}
这是我的代码:
Traceback (most recent call last):
File "pyqt_first.py", line 2, in <module>
from PyQt5 import QtCore, QtGui, uic
ModuleNotFoundError: No module name 'PyQt5'