<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><pre style="font-size: medium;">Hello Phil,</pre><pre style="font-size: medium;">I build the demo on windows10 with VS2017 success according to the document , but when my python script include math module , the application can't import math module.</pre><pre style="font-size: medium;">The math module is api-ms-win-crt-math-l1-1-0.dll on windows , can you tell me how to import math module via pyqtdeploy?</pre><pre style="font-size: medium;">My scripyt as below:</pre><pre style="font-size: medium;"><pre style="font-family: 新宋体; font-size: 8.4pt;"><span style="color: rgb(0, 0, 128); font-weight: bold;">from </span>PyQt5.QtCore <span style="color: rgb(0, 0, 128); font-weight: bold;">import </span>*<br><span style="color: rgb(0, 0, 128); font-weight: bold;">from </span>PyQt5.QtGui <span style="color: rgb(0, 0, 128); font-weight: bold;">import </span>*<br><span style="color: rgb(0, 0, 128); font-weight: bold;">from </span>PyQt5.QtWidgets <span style="color: rgb(0, 0, 128); font-weight: bold;">import </span>*<br><span style="color: rgb(0, 0, 128); font-weight: bold;">import </span>sys<br><span style="color: rgb(0, 0, 128); font-weight: bold;">import </span>math</pre><pre style="font-family: 新宋体; font-size: 8.4pt;"><span style="color: rgb(0, 0, 128); font-weight: bold;">class </span>Window(QWidget):<br>    <span style="color: rgb(0, 0, 128); font-weight: bold;">def </span><span style="color: rgb(178, 0, 178);">__init__</span>(<span style="color: rgb(148, 85, 141);">self</span>):<br>        <span style="color: rgb(0, 0, 128);">super</span>().<span style="color: rgb(178, 0, 178);">__init__</span>()<br>        <span style="color: rgb(148, 85, 141);">self</span>.setupUI()<br><br>    <span style="color: rgb(0, 0, 128); font-weight: bold;">def </span>setupUI(<span style="color: rgb(148, 85, 141);">self</span>):<br>        <span style="color: rgb(148, 85, 141);">self</span>.lb=QLabel(<span style="color: rgb(148, 85, 141);">self</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.lb.setText(<span style="color: rgb(0, 128, 128); font-weight: bold;">'Label'</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.lb.move(<span style="color: rgb(0, 0, 255);">30</span>,<span style="color: rgb(0, 0, 255);">10</span>)<br><br>        <span style="color: rgb(148, 85, 141);">self</span>.btn = QPushButton(<span style="color: rgb(0, 128, 128); font-weight: bold;">'test'</span>,<span style="color: rgb(148, 85, 141);">self</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.btn.move(<span style="color: rgb(0, 0, 255);">30</span>,<span style="color: rgb(0, 0, 255);">30</span>)<br><br>        <span style="color: rgb(148, 85, 141);">self</span>.cb = QComboBox(<span style="color: rgb(148, 85, 141);">self</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.cb.move(<span style="color: rgb(0, 0, 255);">30</span>,<span style="color: rgb(0, 0, 255);">70</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.cb.resize(<span style="color: rgb(0, 0, 255);">200</span>,<span style="color: rgb(0, 0, 255);">30</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.resize(<span style="color: rgb(0, 0, 255);">30</span>,<span style="color: rgb(0, 0, 255);">80</span>)<br><br>        <span style="color: rgb(148, 85, 141);">self</span>.btn.clicked.connect(<span style="color: rgb(148, 85, 141);">self</span>.test_func)<br><br>        <span style="color: rgb(148, 85, 141);">self</span>.setWindowTitle(<span style="color: rgb(0, 128, 128); font-weight: bold;">'test'</span>)<br>        <span style="color: rgb(148, 85, 141);">self</span>.setGeometry(<span style="color: rgb(0, 0, 255);">400</span>, <span style="color: rgb(0, 0, 255);">400</span>, <span style="color: rgb(0, 0, 255);">300</span>, <span style="color: rgb(0, 0, 255);">300</span>)</pre><pre style="font-family: 新宋体; font-size: 8.4pt;">    <span style="color: rgb(0, 0, 128); font-weight: bold;">def </span>test_func(<span style="font-size: 8.4pt; color: rgb(148, 85, 141);">self</span><span style="font-size: 8.4pt;">):</span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        test1 = math.cos(<span style="font-size: 8.4pt; color: rgb(0, 0, 255);">30</span><span style="font-size: 8.4pt;">)</span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        test2 = math.asinh(6<span style="font-size: 8.4pt; color: rgb(0, 0, 255);">0</span><span style="font-size: 8.4pt;">)</span><span style="font-size: 8.4pt;"></span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        test3 = math.exp(<span style="font-size: 8.4pt; color: rgb(0, 0, 255);">40.1</span><span style="font-size: 8.4pt;">)</span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        test4 = math.expm1(<span style="font-size: 8.4pt; color: rgb(0, 0, 255);">5.23</span><span style="font-size: 8.4pt;">)</span><span style="font-size: 8.4pt;"></span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        test5 = math.factorial(<span style="font-size: 8.4pt; color: rgb(0, 0, 255);">40</span><span style="font-size: 8.4pt;">)</span><span style="font-size: 8.4pt;"></span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        test6 = math.isfinite(<span style="font-size: 8.4pt; color: rgb(0, 0, 255);">3.24</span><span style="font-size: 8.4pt;">)</span><span style="font-size: 8.4pt;"></span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;">        self<span style="font-size: 8.4pt;">.cb.addItems([</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">f'</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">{</span><span style="font-size: 8.4pt;">test1</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">}</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">'</span><span style="font-size: 8.4pt;">, </span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">f'</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">{</span><span style="font-size: 8.4pt;">test2</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">}</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">'</span><span style="font-size: 8.4pt;">, </span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">f'</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">{</span><span style="font-size: 8.4pt;">test3</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">}</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">'</span><span style="font-size: 8.4pt;">, </span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">f'</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">{</span><span style="font-size: 8.4pt;">test4</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">}</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">'</span><span style="font-size: 8.4pt;">, </span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">f'</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">{</span><span style="font-size: 8.4pt;">test5</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">}</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">'</span><span style="font-size: 8.4pt;">, </span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">f'</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">{</span><span style="font-size: 8.4pt;">test6</span><span style="font-size: 8.4pt; color: rgb(0, 0, 128); font-weight: bold;">}</span><span style="font-size: 8.4pt; color: rgb(0, 128, 128); font-weight: bold;">'</span><span style="font-size: 8.4pt;">])</span></pre><pre style="font-family: 新宋体; font-size: 8.4pt;"><span style="color: rgb(0, 0, 128); font-weight: bold;">if </span>__name__==<span style="color: rgb(0, 128, 128); font-weight: bold;">'__main__'</span>:<br>    app = QApplication(sys.argv)<br>    window=Window()<br>    window.show()<br>    sys.exit(app.exec_())</pre></pre>