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-tokenReference 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.
- Create a virtual environment using
conda create --name pip_env - Open it using
conda activate pip_envofsource activate pip_env - In a new virtual environment, use
conda install pipto install pip - Then use
pip install gtts - To double-check that it has been installed, use
conda listin 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: