./pip install  hmmlearn 这个包安装失败了

云原生 发布于 04/19 10:33
阅读 429
收藏 0

    copying hmmlearn/hmm.py -> build/lib.linux-x86_64-3.7/hmmlearn
    copying hmmlearn/stats.py -> build/lib.linux-x86_64-3.7/hmmlearn
    copying hmmlearn/utils.py -> build/lib.linux-x86_64-3.7/hmmlearn
    creating build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/__init__.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/conftest.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/test_base.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/test_gaussian_hmm.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/test_gmm_hmm.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/test_gmm_hmm_new.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/test_multinomial_hmm.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    copying hmmlearn/tests/test_utils.py -> build/lib.linux-x86_64-3.7/hmmlearn/tests
    running build_ext
    building 'hmmlearn._hmmc' extension
    Warning: Can't read registry to find the necessary compiler setting
    Make sure that Python modules winreg, win32api or win32con are installed.
    C compiler: gcc -pthread -B /root/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
    
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/hmmlearn
    compile options: '-I/root/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/root/anaconda3/include/python3.7m -c'
    extra options: '-O3'
    gcc: hmmlearn/_hmmc.c
    error: Command "gcc -pthread -B /root/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/root/anaconda3/include/python3.7m -c hmmlearn/_hmmc.c -o build/temp.linux-x86_64-3.7/hmmlearn/_hmmc.o -O3" failed with exit status 127
    
    ----------------------------------------
Command "/root/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-fvkowr26/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 /tmp/pip-record-comorcnu/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-fvkowr26/hmmlearn/
[root@localhost bin]# ./pip install  hmmlearn
 

加载中
0
Leo進城務工
Leo進城務工

Make sure that Python modules winreg, win32api or win32con are installed.

这些包安装了吗?

或者试试这个方法

https://blog.csdn.net/qq_39516859/article/details/80178751

0
Soutv
Soutv
直接找whl来装吧 win平台下就是有很多编译方面的问题
返回顶部
顶部