服务器运行Python 3.6快速安装指南

在VPS或运行CentOS的专用物理服务器上安装Python 3.6的快速安装指南

在该示例中,具有优化和pip包管理系统安装的程序集
yum -y install perl gcc ncurses-devel expat-devel expect-devel \
zlib-devel xz-devel libffi-devel git sqlite-devel openssl-devel

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
tar xJf Python-3.6.3.tar.xz
cd Python-3.6.3

./configure –enable-optimizations
make
make install

curl -O https://bootstrap.pypa.io/get-pip.py
python3.6 get-pip.py

pip3.6 install uwsgi flask sqlalchemy wtforms django celery

发表评论