0

I am running a program in Sublime text and I get the error:

ModuleNotFoundError: No module named 'pyttsx3'

I opened Command Prompt and typed in: pip install pyttsx3 and that's what I get

Collecting pyttsx3
  Using cached pyttsx3-2.90-py3-none-any.whl (39 kB)
Collecting comtypes; platform_system == "Windows"
  Using cached comtypes-1.1.7.zip (180 kB)
Requirement already satisfied: pywin32; platform_system == "Windows" in c:\users\claud\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyttsx3) (228)
Requirement already satisfied: pypiwin32; platform_system == "Windows" in c:\users\claud\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyttsx3) (223)
Using legacy 'setup.py install' for comtypes, since package 'wheel' is not installed.
Installing collected packages: comtypes, pyttsx3
    Running setup.py install for comtypes ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\claud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\claud\\AppData\\Local\\Temp\\pip-install-zam0bo68\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\claud\\AppData\\Local\\Temp\\pip-install-zam0bo68\\comtypes\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\claud\AppData\Local\Temp\pip-record-zh7s3m6p\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\claud\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\comtypes'
         cwd: C:\Users\claud\AppData\Local\Temp\pip-install-zam0bo68\comtypes\
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
user3814312
  • 691
  • 2
  • 7
  • 16
  • Does this answer your question? [Python 3.6 ModuleNotFoundError: No module named 'pyttsx3'](https://stackoverflow.com/questions/51948896/python-3-6-modulenotfounderror-no-module-named-pyttsx3) – Roshin Raphel Nov 03 '20 at 06:35

1 Answers1

0

I did fix it. First I upgraded the version of pip by going here C:\Users\claud\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe

And followed this instructions: https://pip.pypa.io/en/stable/installing/

After that it was easy to do pip install pyttsx3

user3814312
  • 691
  • 2
  • 7
  • 16