Python 3.6 ModuleNotFoundError: No module named 'pyttsx3'

微笑、不失礼 提交于 2019-12-23 02:10:54

问题


I have absolutely no idea what can be the problem. I did the pip installer (pip install pyttsx3) and re-installed the JetBrains PyCharm, but it still not working.


回答1:


Start a pyCharm terminal window, then install 'pipenv' which is an improved pip replacement as follows: pip install -u pipenv Then use pipenv instead of pip as this will create it's own Pipfile and virtualenv. You can install pyttsx3 as follows: pipenv install pyttsx3 This will create a Pipfile and a Pipfile.lock which pycharm should pickup and ensure it's using the correct python version and virtualenv environment. Otherwise check that your python interpreter is set correctly in "Run/Debug configurations". If it's not in that list then you can add a new python interpreter via the Preferences->Project->Project Interpreter option.



来源:https://stackoverflow.com/questions/51948896/python-3-6-modulenotfounderror-no-module-named-pyttsx3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!