sudo yum upgrade python-setuptools
sudo yum -y install gcc libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel gcc-c++
# python变量
export PYTHONIOENCODING=utf-8
# python3 准备
./configure --prefix=/usr/local/python-3 --with-ssl
make -j 4
make install
virtualenv -p /usr/local/python-3/bin/python3.6 /usr/local/bienv
/usr/local/python-3/bin/python3.6 -m venv /usr/local/bienv
# Install caravel
pip install caravel --trusted-host pypi.douban.com
yum install sqlite-devel
pip install pysqlite
# Create an admin user
fabmanager create-admin --app caravel
# Initialize the database
caravel db upgrade
# Load some data to play with
caravel load_examples
# Create default roles and permissions
caravel init
# Start the web server on port 8088
caravel runserver -p 8088
原文链接:https://www.f2er.com/centos/377320.html