首页 > 解决方案 > 尝试使用 conda install 安装 docx 模块以刮掉 doc

问题描述

我正在尝试使用 conda install 安装 docx 模块来刮掉doc 一词并从 doc 中提取某些部分。但是我在安装模块时遇到了一些错误。

(base)/users/sai condabin % conda install docx
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - docx

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.


(base) /users/sai condabin %

我在这里错过了什么吗?还是有更好的模块来浏览文档这个词?请告诉我。

标签: python

解决方案


在他们的安装页面上,他们说使用以下命令安装文档:
conda install -c conda-forge python-docx

来源:https ://anaconda.org/conda-forge/python-docx


推荐阅读