进行安装pyenv,之后使用pyenv doctor进行检查,提示:
$ pyenv doctor
Cloning /home/jason/.pyenv/plugins/pyenv-doctor/bin/.....
Installing python-pyenv-doctor...
BUILD FAILED (openSUSE Tumbleweed 20180117 using python-build 20160602)
Inspect or clean up the working tree at /tmp/python- build.20180120111511.14454
Results logged to /tmp/python-build.20180120111511.14454.log
Last 10 log lines:
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for rl_gnu_readline_p in -lreadline... yes
checking for readline/readline.h... no
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL is not installed.
Problem(s) detected while checking system.
检查环境,发现openssl有安装的:
$ sudo zypper in openssl-devel
正在加载软件源数据...
正在读取已安装的软件包...
在软件包名中未找到 'openssl-devel'。正在尝试在功能中查找。
已安装过了 'libopenssl-devel',其提供了 'openssl-devel'。
正在解决软件包依赖关系...
无事可做。