【问题标题】:Error installing hmm安装错误嗯
【发布时间】:2019-08-25 17:56:31
【问题描述】:

我在安装 hmm 时遇到以下错误。我无法理解如何解决这个问题。请提供一些解决方案。我具备所有必要的先决条件

creating build\temp.win-amd64-3.6\Release\hmmlearn
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\users\vibhuti\anaconda3\lib\site-packages\numpy\core\include -Ic:\users\vibhuti\anaconda3\include -Ic:\users\vibhuti\anaconda3\include /Tchmmlearn/_hmmc.c /Fobuild\temp.win-amd64-3.6\Release\hmmlearn/_hmmc.obj -O3

error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\users\vibhuti\anaconda3\lib\site-packages\numpy\core\include -Ic:\users\vibhuti\anaconda3\include -Ic:\users\vibhuti\anaconda3\include /Tchmmlearn/_hmmc.c /Fobuild\temp.win-amd64-3.6\Release\hmmlearn/_hmmc.obj -O3" failed with exit status 127

Failed building wheel for hmmlearn
Running setup.py clean for hmmlearn
Failed to build hmmlearn
Installing collected packages: hmmlearn
Running setup.py install for hmmlearn ... error
Complete output from command c:\users\vibhuti\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Vibhuti\AppData\Local\Temp\pip-install-e43n98hp\hmmlearn\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Vibhuti\AppData\Local\Temp\pip-record-jzs40nue\install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\hmmlearn
copying hmmlearn\base.py -> build\lib.win-amd64-3.6\hmmlearn
copying hmmlearn\hmm.py -> build\lib.win-amd64-3.6\hmmlearn
copying hmmlearn\utils.py -> build\lib.win-amd64-3.6\hmmlearn
copying hmmlearn_init_.py -> build\lib.win-amd64-3.6\hmmlearn
creating build\lib.win-amd64-3.6\hmmlearn\tests
copying hmmlearn\tests\test_base.py -> build\lib.win-amd64-3.6\hmmlearn\tests
copying hmmlearn\tests\test_gaussian_hmm.py -> build\lib.win-amd64-3.6\hmmlearn\tests
copying hmmlearn\tests\test_gmm_hmm.py -> build\lib.win-amd64-3.6\hmmlearn\tests
copying hmmlearn\tests\test_multinomial_hmm.py -> build\lib.win-amd64-3.6\hmmlearn\tests
copying hmmlearn\tests\test_utils.py -> build\lib.win-amd64-3.6\hmmlearn\tests
copying hmmlearn\tests_init_.py -> build\lib.win-amd64-3.6\hmmlearn\tests
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
building 'hmmlearn._hmmc' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\hmmlearn
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\users\vibhuti\anaconda3\lib\site-packages\numpy\core\include -Ic:\users\vibhuti\anaconda3\include -Ic:\users\vibhuti\anaconda3\include /Tchmmlearn/_hmmc.c /Fobuild\temp.win-amd64-3.6\Release\hmmlearn/_hmmc.obj -O3

error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\\users\\vibhuti\\anaconda3\\lib\\site-pac

【问题讨论】:

    标签: python hmmlearn


    【解决方案1】:

    您可以尝试链接https://pypi.org/project/hmmlearn/ 以按照说明在 python 中安装 hmmlearn 模块。

    【讨论】:

    • 我这样做了,但是 setup.py 存在问题,导致它无法运行
    猜你喜欢
    • 1970-01-01
    • 2021-03-16
    • 1970-01-01
    • 1970-01-01
    • 2018-09-15
    • 2015-06-17
    • 1970-01-01
    • 1970-01-01
    • 2019-01-22
    相关资源
    最近更新 更多