0

I am using python 3.7 And Pycharm. I want to install pyttsx3. When I try it through command prompt it show that it is installed successfully but when I initialize it it gives me error which I have posted in brief in Unable to use pyttsx3 . So When I try to install through pycharm it gives me this error. Here Is An Image Also - [1]: https://i.stack.imgur.com/WWz3G.png

     command: 'C:\Users\admin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pycharm-packaging\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pycharm-packaging\\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\admin\AppData\Local\Temp\pip-record-agmtbp8j\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\comtypes'
         cwd: C:\Users\admin\AppData\Local\Temp\pycharm-packaging\comtypes\```
``` ERROR: Command errored out with exit status 1: 'C:\Users\admin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pycharm-packaging\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pycharm-packaging\\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\admin\AppData\Local\Temp\pip-record-agmtbp8j\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\comtypes' Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 20.3.1 is available.
You should consider upgrading via the 'C:\Users\admin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.`


[1]: https://i.stack.imgur.com/WWz3G.png

 
Cool 91
  • 1
  • 1
  • First as indicated upgrade pip version 20.1.1 to version 20.3.1. Second, check the logs for full error report as indicated. – itprorh66 Dec 15 '20 at 14:31
  • @itprorh66 My pip version is 20.3.2 – Cool 91 Dec 15 '20 at 16:33
  • Not according to your error message see "WARNING: You are using pip version 20.1.1; however, version 20.3.1 is available." – itprorh66 Dec 15 '20 at 17:55
  • @itprorh66 So should I uninstall my pip 20.3.2 and install pip version 20.3.1 or should I just downgrade my pip version ? – Cool 91 Dec 16 '20 at 02:32
  • Before you do that ensure you don't have two versions of python installed – itprorh66 Dec 16 '20 at 13:54
  • @itprorh66 ok I don't have two versions of python installed but should I downgrade to pip version 20.3.1 – Cool 91 Dec 16 '20 at 14:28
  • @itprorh66 I downgraded pip to 20.3.1 and installed pysstx3 v 2.90 but i got error – Cool 91 Dec 16 '20 at 14:38
  • Did you determine if you have more than one version of python running? Did the error message include the warning about running the wrong version of pip? – itprorh66 Dec 16 '20 at 14:48
  • @itprorh66 No only one pip version is running and No the error msg did not include wrong version of pip – Cool 91 Dec 16 '20 at 15:08
  • If you try to import it in your app does it still give you the error ```ImportError: No system module 'pywintypes' (pywintypes37.dll)```? – itprorh66 Dec 16 '20 at 15:16

0 Answers0