我正在创建自己的聊天机器人,因此我需要gTTS软件包,但是每次安装以失败结束时,都无法在Windows上使用conda进行安装。

我试过了:conda install gTTS
并且:
conda install -c conda-forge gTTS
结果:

Solving environment: failed

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

  - gtts

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-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.

最佳答案

官方Anaconda Cloud提供解决方案

conda install -c tdido gtts-token

引用网址:https://anaconda.org/tdido/gtts-token

这适用于Python3.4

关于windows - 在Windows上使用Anaconda安装gTTS软件包,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55806996/

10-15 11:06