【发布时间】:2021-05-02 08:10:06
【问题描述】:
我是 python 的新手,我正在尝试为我的项目添加一个新环境,该环境在我当前的环境 Python 3.7.5 上运行良好 添加所有依赖项后,我面临 pyttsx3 包的问题(用于 python 文本到语音) 在进一步研究中,我发现这是 python 版本 Python 3.7.6 的问题 https://github.com/nateshmbhat/pyttsx3/issues/136
这是我当前虚拟环境的 python 版本。 这些是我安装环境所遵循的步骤
- py -m pip install --user virtualenv
- py -m venv 环境
- 激活:.\env\Scripts\activate
https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
我希望我可以为我的虚拟环境获取 Python 3.7.7 或 Python 3.7.5(在我当前的机器上)。
我正在使用 Visual Studiocode IDE。
【问题讨论】:
-
这能回答你的问题吗? Use different Python version with virtualenv
标签: python virtualenv pyttsx