./pip install hmmlearn 这个包安装失败了
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('rn', '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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
直接找whl来装吧 win平台下就是有很多编译方面的问题
Make sure that Python modules winreg, win32api or win32con are installed.
这些包安装了吗?
或者试试这个方法
https://blog.csdn.net/qq_39516859/article/details/80178751