centos 安装 streamlit 遇到的坑

因为一些兼容问题吧,centos自带了python2,那我们要用streamlit就必须要安装python3,所以我安装了python3.8,然后安装了streamlit,一执行就报错。总的来说依次要安装3个包

yum -y install bzip2-devel
yum -y install openssl-devel
yum -y install xz-devel

先安装上面三个包,然后重新编译安装python3,接着重新安装streamlit就行了,命令我都给你准备好了

1、删除python

whereis python3 |xargs rm -frv

2、重新编译安装python
./configure && make && make install

3、安装streamlit
pip3 install --upgrade pip
pip3 install numpy
pip3 install pandas
pip3 install streamlit
streamlit --version

原文地址:https://www.cnblogs.com/cation/p/15531204.html