diff --git a/docs/setup_by_centos7.rst b/docs/setup_by_centos7.rst index c6a33d82dc0b5a83fd6bab6ae9d319faf6dbeff4..036e686d801d753d82ea5a94d07d8c3106ef5234 100644 --- a/docs/setup_by_centos7.rst +++ b/docs/setup_by_centos7.rst @@ -63,10 +63,8 @@ CentOS 7 安装文档 $ yum -y install nginx $ systemctl enable nginx - # 下载编译 Python3.6.1 - $ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz - $ tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1 - $ ./configure && make && make install + # 安装 Python3.6 + $ yum -y install python36 python3-devel # é…置并载入 Python3 虚拟环境 $ cd /opt diff --git a/docs/setup_by_ubuntu.rst b/docs/setup_by_ubuntu.rst index b33f81d6077271c5afb4878a8e11009cb4e81840..d33d7fa52ccfd1c1bb7d62b941e0c705b41d0948 100644 --- a/docs/setup_by_ubuntu.rst +++ b/docs/setup_by_ubuntu.rst @@ -30,13 +30,13 @@ $ apt-get install language-pack-zh-hans $ echo 'LANG="zh_CN.UTF-8"' > /etc/default/locale -**1.2 编译安装** +**1.2 安装 Python3.6** :: - $ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz - $ tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1 - $ ./configure && make && make install + $ add-apt-repository ppa:jonathonf/python-3.6 -y + $ apt-get update + $ apt-get -y install python3.6 python3.6-dev python3.6-venv **1.3 建立 Python 虚拟环境** diff --git a/docs/step_by_step.rst b/docs/step_by_step.rst index 73cf4debff8bde5db8fe070fd0af553a86d928f7..9db2adc139b591a22f08ba0ab3ec33b6355908e2 100644 --- a/docs/step_by_step.rst +++ b/docs/step_by_step.rst @@ -48,17 +48,11 @@ $ yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git -Yum åŠ é€Ÿè®¾ç½®è¯·å‚考 <http://mirrors.163.com/.help/centos.html> - -**1.2 编译安装** +**1.2 安装 Python3.6** :: - $ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz - $ tar xvf Python-3.6.1.tar.xz && cd Python-3.6.1 - $ ./configure && make && make install - - # 这里必须执行编译安装,å¦åˆ™åœ¨å®‰è£… Python 库ä¾èµ–时会有麻烦... + $ yum -y install python36 python3-devel **1.3 建立 Python 虚拟环境**