openSUSE安装python snack

1,108 阅读1分钟
原文链接: shimo.im
新系统安装了终端分屏工具 byobu, 但是在配置的时候却无法出现配置界面,报错如下:
  1. /|⇒ byobu-config
  1. ERROR: Could not import the python snack module
  1. /|⇒ 

缺少 snack包, 执行   `pip install snack`    
于是指定pip 由Python2作为模块载入 python2 -m  pip install snack ,
安装 Cpythonpip install Cython

安装numpypip2 install Cython numpy
安装GCC-G++

zypper install gcc-c++ zypper install bison ccache flex gcc gcc-c++ gcc-java gcc-info zlib-devel nasm  cmake  autoconf autogen automake automoc4 make  git
再次安装 snack 报错 :
snack/_snack.cpp:37:10: fatal error: Python.h: No such file or directory

安装python develzypper install python3-devel python-devel 
紧接着有报错如下:lib-bhtsne/tsne.cpp:46:14: fatal error: cblas.h: No such file or directory
安装 cblaszypper install cblas-develzypper install libcblas3 然后又有错误:
 collect2: error: ld returned 1 exit status    error: command 'g++' failed with exit status 1

zypper install libcblas3 zypper install cblas-devel-static
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lblas
zypper install libblas3zypper install blas-devel
python2 -m pip install snack 终于装上了, 我都要放弃了!!!!!