Error while installing pyttsx3
For some reason, I am unable to install the pyttsx3 module in Python. I always get the error. 100% solve all types of error in here
you can face this type of error
=================================================================
PS C:\Users\nawabkhan> pip install pyttsx3
Collecting pyttsx3
Using cached pyttsx3-2.84-py3-none-any.whl (39 kB)
Collecting pyobjc>=2.4
Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB)
Collecting comtypes; "win32" in sys_platform
Using cached comtypes-1.1.7.zip (180 kB)
Collecting pyobjc-framework-SyncServices==6.1
Downloading pyobjc-framework-SyncServices-6.1.tar.gz (42 kB)
|████████████████████████████████| 42 kB 55 kB/s
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\laxmi\\AppData\\Local\\Temp\\pip-install-8oeeuvox\\pyobjc-framework-SyncServices\\setup.py'"'"'; __file__='"'"'C:\\Users\\laxmi\\AppData\\Local\\Temp\\pip-install-8oeeuvox\\pyobjc-framework-SyncServices\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\laxmi\AppData\Local\Temp\pip-install-8oeeuvox\pyobjc-framework-SyncServices\pip-egg-info'
cwd: C:\Users\laxmi\AppData\Local\Temp\pip-install-8oeeuvox\pyobjc-framework-SyncServices\
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\laxmi\AppData\Local\Temp\pip-install-8oeeuvox\pyobjc-framework-SyncServices\setup.py", line 25, in <module Extension(
Extension
File "C:\Users\laxmi\AppData\Local\Temp\pip-install-8oeeuvox\pyobjc-framework-SyncServices\pyobjc_setup.py", line 218, in get_os_level
pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
File "c:\program files (x86)\python38-32\lib\plistlib.py", line 99, in readPlist
with _maybe_open(pathOrFile, 'rb') as fp:
File "c:\program files (x86)\python38-32\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\program files (x86)\python38-32\lib\plistlib.py", line 82, in _maybe_open
with open(pathOrFile, mode) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================================================
So how we can solve this type of error
And Press Clrt+F wait few second and find pyttsx3 click the pyttsx3
Download The whl file and past in your python files like this " easy_pyttsx3-1.0.0-py3-none-any.whl"
Go where you install your python open it and go to Lib and past the file
and open cmd or tarminal here and past the file name on cmd
like this pip install easy_pyttsx3-1.0.0-py3-none-any.whl and press Enter
And Enjoy if you Want To Run it and make a full AI program Like Jarvis
You need to install many lib like pyaudio
And Please Give A Comment
Comments
Post a Comment
You Have any doubt contact me