首页 > 解决方案 > 我正在尝试在 VSC python 中创建/激活虚拟环境

问题描述

我在命令提示符下创建了一个虚拟环境,python 在命令提示符下工作,但是当我尝试从 VSC 执行此操作时,输入后收到以下消息-m venv .venv

PS C:\Users\jefim> -m venv .venv
-m : The term '-m' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ -m venv .venv
+ ~~
    + CategoryInfo          : ObjectNotFound: (-m:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

标签: python

解决方案


推荐阅读