擅长:python、mysql、java
<p>有两种方法可以解决需要Microsoft生成工具的包的问题:</p>
<p>1)为Python使用Anaconda包。如果您的Python包是与Anaconda一起提供的,那么您只需要<code>conda install hmmlearn</code>。就我个人而言,所有的包生成错误都是用这个来修复的。</p>
<p>2)如果您独立安装了Python,请按照以下步骤进行修复:</p>
<p>a)对于Python 3.5,3.6:下载并安装<a href="https://visualstudio.microsoft.com/downloads/" rel="nofollow noreferrer">Microsoft Visual C++ Build Tools 2017</a>。</p>
<p>b)在Visual Studio下载页上,向下滚动并选择“Visual Studio 2017工具”。单击<code>Build Tools for Visual Studio 2017</code>的下载按钮。</p>
<p>c)重新启动计算机并尝试使用<code>pip install hmmlearn</code>安装hmmlearn。</p>
<p>3)在某些情况下,如果包生成错误仍然存在,可以考虑使用<a href="https://github.com/superbobry/hmmlearn-wheels" rel="nofollow noreferrer">wheels</a>生成包。</p>
<p>我希望这能有帮助。</p>