擅长:python、mysql、java
<p>出现此错误是因为没有将python.exe路径添加到系统环境变量中</p>
<ol>
<li><p>转到路径<code>C:\Users\%Username%\AppData\Local\Programs\Python\Python37-32</code>,该路径包含python.exe</strong></p></li>
<li><p>复制路径并打开系统环境变量,如果不创建变量名为<strong>路径且值为复制路径的新变量,请在变量部分中查找名为path的变量</li>
</ol>
<p><a href="https://i.stack.imgur.com/MPt58.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MPt58.png" alt="enter image description here"/></a></p>
<ol start=“3”>
<li>这样做之后,关闭窗口并简单地打开cmd并键入python,应该会得到如下结果</li>
</ol>
<p><a href="https://i.stack.imgur.com/giroL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/giroL.png" alt="enter image description here"/></a></p>