简体   繁体   English

VSCode 终端从 python 3.7 更改为 3.6

[英]VSCode terminal change from python 3.7 to 3.6

I want to install dlib but since it only supports python 3.6, I have to downgrade my python 3.7.我想安装 dlib,但由于它只支持python 3.6,我必须降级我的 python 3.7。

I was able to create an environment and already selected it on my VSCode but whenever I check my terminal for the python version, it's still stuck on 3.7.我能够创建一个环境并且已经在我的 VSCode 上选择了它,但是每当我检查我的终端是否有 python 版本时,它仍然停留在 3.7 上。

Can someone help me on this?有人可以帮我吗?

看图片

When you write python in the terminal, the version used is resolved by the PATH variable.在终端中写入python时,使用的版本由PATH变量解析。 You may want to specify the full path to the Python version you want (in Windows, use where python to list all possibilities), or modify the PATH variable and change the order.您可能需要指定 Python 版本的完整路径(在 Windows 中,使用where python列出所有可能性),或修改PATH变量并更改顺序。 Depending on the installation method, the full path to python may look like C:\Python36\python.exe根据安装方法, python的完整路径可能类似于C:\Python36\python.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM