我完全不知道会出现什么问题。我执行了 pip 安装程序 (pip install pyttsx3) 并重新安装了 JetBrains PyCharm,但它仍然无法正常工作。
启动 pyCharm 终端窗口,然后安装“pipenv”,它是改进的 pip 替代品,如下所示:
pip install -u pipenv
然后使用 pipelinenv 而不是 pip,因为这将创建它自己的 Pipfile 和 virtualenv。您可以按如下方式安装 pyttsx3:
pipenv install pyttsx3
这将创建一个 Pipfile 和一个 Pipfile.lock,pycharm 应拾取它们并确保它使用正确的 python 版本和 virtualenv 环境。否则请检查您的 python 解释器在“运行/调试配置”中是否设置正确。如果它不在该列表中,那么您可以通过 Preferences->Project->Project Interpreter 选项添加新的 python 解释器。
| 归档时间: |
|
| 查看次数: |
31955 次 |
| 最近记录: |