我是python的新手,我试图为我的项目添加一个新的环境,这个环境在我当前的环境下运行良好,Python3.7.5在添加了pyttsx3包的所有依赖项(从Python到https://github.com/nateshmbhat/pyttsx3/issues/136 )之后,我发现这是PythonVersionPython3.7.6https://github.com/nateshmbhat/pyttsx3/issues/136的一个问题。
它是我当前虚拟环境的python版本。以下是安装环境所遵循的步骤
.\env\Scripts\activate
https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
我希望能够为我的虚拟环境获得Python3.7.7或Python3.7.5(在我当前的机器上)。
我正在使用。
发布于 2021-01-28 13:05:49
你能做到的
virtualenv -p python3.7.5 [name]但是你需要在你的python3.7.5中加入$PATH,否则你会得到
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.7.5'所以,您最好使用conda
conda create --name [name] python=3.7.5https://stackoverflow.com/questions/65936980
复制相似问题