天天看點

離線伺服器安裝pyecharts确認pyecharts依賴包

離線伺服器安裝pyecharts

  • 确認pyecharts依賴包
    • 首先安裝javascripthon>=0.10
      • 安裝pytest-runner
        • 安裝pytest-sugar>=0.9.1
        • 安裝collective.checkdocs成功
        • 安裝安裝pytest-flake8(不安裝也不會影響javascripthon的安裝)
        • 安裝pytest-virtualenv(不安裝也不會影響javascripthon的安裝)
          • 安裝pytest-shutil
          • 安裝mock
        • 安裝jaraco.packaging>=3.2成功
        • 安裝rst.linker>=1.9
        • 安裝setuptools_scm>=1.15.0成功
      • 安裝metapensiero.tool.bump_version
      • 安裝readme_renderer成功
      • 安裝pytest-cov
      • 安裝meta成功
    • 安裝pyecharts-javascription==0.0.6成功
    • 安裝pyecharts-0.5.11-py2.py3-none-any.whl成功
    • 最後試驗下來,如果最後運作render(),可以輸出HTML檔案,打開正常顯示。如果想直接下載下傳圖檔,需要下載下傳安裝包pyecharts-snapshot。為了友善以後使用,也可以順便下載下傳安裝pyecharts_plus(但是需要pandas >=0.23.4版本)。

确認pyecharts依賴包

首先在本地pip install pyecharts 觀察所需的依賴包,再和離線伺服器上的依賴包(conda list) 做對比,找出缺失的依賴包,以下是确實的第一層依賴包

pyecharts; pyecharts-javascription==0.0.6; javascripthon>=0.10

在官網https://pypi.org/ 下載下傳依賴包,選擇最近版本->download壓縮包,以下全部用pip install 檔案名指令。在伺服器上最好用管理者身份打開Anaconda Prompt,然後用cd指令到依賴包所在的檔案夾

首先安裝javascripthon>=0.10

打開壓縮包,選擇setup.py打開,把extras_require、setup_requires和install_requires部分涉及的依賴包與離線伺服器上的依賴包對比,沒有的部分在官網下載下傳。下面是javascripthon缺失依賴包

pytest-runner; metapensiero.tool.bump_version;readme_renderer;pytest-cov;meta

安裝pytest-runner

缺失以下依賴包

pytest-sugar>=0.9.1;collective.checkdocs;pytest-flake8;pytest-virtualenv;jaraco.packaging>=3.2;rst.linker>=1.9;setuptools_scm>=1.15.0

安裝pytest-sugar>=0.9.1

缺失以下依賴包

termcolor>=1.1.0

安裝collective.checkdocs成功

安裝安裝pytest-flake8(不安裝也不會影響javascripthon的安裝)

缺失以下依賴包

flake8>=3.5 (不成功繼續 缺pytest-runner;pyflakes 2.0.0;pycodestyle;mccabe >= 0.6.0);pytest>=3.5

安裝pytest-virtualenv(不安裝也不會影響javascripthon的安裝)

缺失以下依賴包

setuptools-git;pytest-fixture-config;pytest-shutil;mock

安裝pytest-shutil

缺失以下依賴包

execnet(缺依賴包apipkg);six

安裝mock

缺失以下依賴包

pbr>=1.3

安裝jaraco.packaging>=3.2成功

安裝rst.linker>=1.9

缺失以下依賴包

setuptools_scm>=1.15.0

安裝setuptools_scm>=1.15.0成功

安裝metapensiero.tool.bump_version

缺以下依賴包

Versio

安裝readme_renderer成功

安裝pytest-cov

缺以下依賴包

coverage>=4.4

安裝meta成功

安裝pyecharts-javascription==0.0.6成功

安裝pyecharts-0.5.11-py2.py3-none-any.whl成功

最後試驗下來,如果最後運作render(),可以輸出HTML檔案,打開正常顯示。如果想直接下載下傳圖檔,需要下載下傳安裝包pyecharts-snapshot。為了友善以後使用,也可以順便下載下傳安裝pyecharts_plus(但是需要pandas >=0.23.4版本)。

繼續閱讀