cavarel install under centos 6 with python 3 env

前端之家收集整理的这篇文章主要介绍了cavarel install under centos 6 with python 3 env前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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

猜你在找的CentOS相关文章