1

How to install pyttsx in Anaconda3 (Python3.7) windows 10 machine? I tried to install but getting the error

ERROR: Could not find a version that satisfies the requirement pyttsx3 (from versions: none)
ERROR: No matching distribution found for pyttsx3

C:\Users\Ramesh\Anaconda3\Scripts>pip install pyttsx3
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pyttsx3
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/
  Could not fetch URL https://pypi.org/simple/pyttsx3/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyttsx3/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement pyttsx3 (from versions: none)
ERROR: No matching distribution found for pyttsx3
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
James Z
  • 12,209
  • 10
  • 24
  • 44
Ramesh
  • 13
  • 1
  • 3
  • Possible duplicate of [pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available](https://stackoverflow.com/questions/45954528/pip-is-configured-with-locations-that-require-tls-ssl-however-the-ssl-module-in) – luis.parravicini Oct 19 '19 at 19:35

3 Answers3

6

I was facing the same problem.The steps I followed to solve it are:

  1. Go to Anaconda prompt and type conda install pip . This will install pip in the current conda environment.

2.After step 1, type pip install pyttsx3 .

Some additional links for help,see under Installing non-conda packages-Managing Conda packages

Anirudh
  • 76
  • 1
  • 2
0

In your error message:

however the ssl module in Python is not available

Try this:

pip install ssl
  • Thanks for your time. I tired your command "pip install ssl", i am getting this error ERROR: Could not find a version that satisfies the requirement ssl (from versions: none) ERROR: No matching distribution found for ssl – Ramesh Oct 20 '19 at 14:42
0

If you install it with pip in the same environment as conda, the latest changes from pip overwrite conda settings and vice versa. You must create a separate env for pip packages.

Alex Sam
  • 7
  • 2