gTTS package installation using anaconda on windows

I am creating my own chatbot and so I need the gTTS package but I can not install it with conda on windows, every time the installation ends with a failure.

I tried:conda install gTTS

and also: conda install -c conda-forge gTTS

The result:

Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels: - gtts
Current channels: - - - - - - - - - .... - ....
To search for alternate channels that may provide the conda package you're
looking for, navigate to
and use the search bar at the top of the page.
1

2 Answers

Official Anaconda Cloud gives solution

conda install -c tdido gtts-token

Reference URL :

This works on Python3.4

On the anaconda website, it says that gtts is only available for download on Linux, so I don't think you can use gtts with conda on Windows.

You have the option of using Linux, or installing from pip.

What you could do is install pip in your conda virtual environment. However, using pip and conda together might cause problems, so it is best to create a new conda virtual environment if possible to install pip and gtts.

  1. Create a virtual environment using conda create --name pip_env
  2. Open it using conda activate pip_env of source activate pip_env
  3. In a new virtual environment, use conda install pip to install pip
  4. Then use pip install gtts
  5. To double-check that it has been installed, use conda list in pip_env to look for gtts.

Info about conda with pip:

Info about managing packages in python (with conda and pip):

Installing pip and other pip modules in more detail:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like