From 0018459f0e1d136db88a991f28e169fa5ee7eaab Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Tue, 7 Sep 2021 17:33:10 +0800 Subject: [PATCH] updated README for installing openpyxl --- docs/installation.rst | 16 +++++------ myems-api/README.md | 50 ++++++++++++++++++++--------------- myems-normalization/README.md | 17 ++++++------ 3 files changed, 44 insertions(+), 39 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index eb5dcbea..3457f290 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -68,15 +68,15 @@ Installation * Install openpyxl, refer to `https://foss.heptapod.net/openpyxl/openpyxl `_ - | Get the latest version of et_xmlfile from `https://bitbucket.org/openpyxl/et_xmlfile/downloads/ `_ + | Get the latest version of et_xmlfile from `https://foss.heptapod.net/openpyxl/et_xmlfile/ `_ | Get the latest version of jdcal from `https://github.com/phn/jdcal `_ - | Get the latest version of openpyxl from `https://bitbucket.org/openpyxl/openpyxl/downloads/ `_ + | Get the latest version of openpyxl from `https://foss.heptapod.net/openpyxl/openpyxl `_ :: $ cd ~/tools - $ wget https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/branch/default/et_xmlfile-branch-default.tar.gz - $ tar xzf et_xmlfile-branch-default.tar.gz - $ cd ~/tools/et_xmlfile-branch-default + $ wget https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/1.1/et_xmlfile-1.1.tar.gz + $ tar xzf et_xmlfile-1.1.tar.gz + $ cd ~/tools/et_xmlfile-1.1 $ sudo python3 setup.py install $ cd ~/tools $ git clone https://github.com/phn/jdcal.git @@ -86,9 +86,9 @@ Installation $ pip3 download Pillow $ sudo pip3 install --no-index --find-links ~/tools/pillow Pillow $ cd ~/tools - $ wget https://foss.heptapod.net/openpyxl/openpyxl/-/archive/branch/3.0/openpyxl-branch-3.0.tar.gz - $ tar xzf openpyxl-branch-3.0.tar.gz - $ cd openpyxl-branch-3.0 + $ wget https://foss.heptapod.net/openpyxl/openpyxl/-/archive/3.0.7/openpyxl-3.0.7.tar.gz + $ tar xzf openpyxl-3.0.7.tar.gz + $ cd openpyxl-3.0.7 $ sudo python3 setup.py install * Install gunicorn service for myems-api:: diff --git a/myems-api/README.md b/myems-api/README.md index 2a55fc7d..a4c1145c 100644 --- a/myems-api/README.md +++ b/myems-api/README.md @@ -79,31 +79,37 @@ sudo python3 setup.py install ``` * Install openpyxl, refer to https://foss.heptapod.net/openpyxl/openpyxl - -Get the latest version of et_xmlfile from https://foss.heptapod.net/openpyxl/et_xmlfile - -Get the latest version of jdcal from https://github.com/phn/jdcal - +Get the latest version of et_xmlfile from https://foss.heptapod.net/openpyxl/et_xmlfile/ +```bash +cd ~/tools +wget https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/1.1/et_xmlfile-1.1.tar.gz +tar xzf et_xmlfile-1.1.tar.gz +``` +Get jdcal +```bash +cd ~/tools +git clone https://github.com/phn/jdcal.git +``` +Get Pillow +``` +mkdir ~/tools/pillow && cd ~/tools/pillow +pip3 download Pillow +``` Get the latest version of openpyxl from https://foss.heptapod.net/openpyxl/openpyxl +```bash +cd ~/tools +wget https://foss.heptapod.net/openpyxl/openpyxl/-/archive/3.0.7/openpyxl-3.0.7.tar.gz +tar xzf openpyxl-3.0.7.tar.gz +``` ```bash - cd ~/tools - wget https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/branch/default/et_xmlfile-branch-default.tar.gz - tar xzf et_xmlfile-branch-default.tar.gz - cd ~/tools/et_xmlfile-branch-default - sudo python3 setup.py install - cd ~/tools - git clone https://github.com/phn/jdcal.git - cd ~/tools/jdcal - sudo python3 setup.py install - mkdir ~/tools/pillow && cd ~/tools/pillow - pip3 download Pillow - sudo pip3 install --no-index --find-links ~/tools/pillow Pillow - cd ~/tools - wget https://foss.heptapod.net/openpyxl/openpyxl/-/archive/branch/3.0/openpyxl-branch-3.0.tar.gz - tar xzf openpyxl-branch-3.0.tar.gz - cd openpyxl-branch-3.0 - sudo python3 setup.py install +cd ~/tools/et_xmlfile-1.1 +sudo python3 setup.py install +cd ~/tools/jdcal +sudo python3 setup.py install +sudo pip3 install --no-index --find-links ~/tools/pillow Pillow +cd ~/tools/openpyxl-3.0.7 +sudo python3 setup.py install ``` * Download myems: diff --git a/myems-normalization/README.md b/myems-normalization/README.md index 12a40430..00a3e4f7 100644 --- a/myems-normalization/README.md +++ b/myems-normalization/README.md @@ -45,28 +45,27 @@ Download and install openpyxl ```bash cd ~/tools ``` -Get the latest version of et_xmlfile from https://bitbucket.org/openpyxl/et_xmlfile/downloads/ +Get the latest version of et_xmlfile from https://foss.heptapod.net/openpyxl/et_xmlfile/ ```bash -wget https://bitbucket.org/openpyxl/et_xmlfile/get/50973a6de49c.zip -7z x 50973a6de49c.zip && mv openpyxl-et_xmlfile-50973a6de49c et_xmlfile +wget https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/1.1/et_xmlfile-1.1.tar.gz +tar xzf et_xmlfile-1.1.tar.gz ``` Get jdcal ```bash git clone https://github.com/phn/jdcal.git ``` - -Get the latest version of openpyxl from https://bitbucket.org/openpyxl/openpyxl/downloads/ +Get the latest version of openpyxl from https://foss.heptapod.net/openpyxl/openpyxl ```bash -wget https://bitbucket.org/openpyxl/openpyxl/get/8953233f5af2.zip -7z x 8953233f5af2.zip && mv openpyxl-openpyxl-8953233f5af2 openpyxl +wget https://foss.heptapod.net/openpyxl/openpyxl/-/archive/3.0.7/openpyxl-3.0.7.tar.gz +tar xzf openpyxl-3.0.7.tar.gz ``` ```bash -cd ~/tools/et_xmlfile +cd ~/tools/et_xmlfile-1.1 sudo python3 setup.py install cd ~/tools/jdcal sudo python3 setup.py install -cd ~/tools/openpyxl +cd ~/tools/openpyxl-3.0.7 sudo python3 setup.py install ```