python - 我正在尝试在 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
解决方案
推荐阅读
- php - 如何使用 f3 beforeroute() 检查登录用户,重定向到登录然后返回原始路由?
- python - 在 Maya 的 liveMode 中从用户启动的 QuadDraw 工具中查询一个值
- c++ - 使用 GTK 将 EGL 图像渲染到帧缓冲区
- npm - 如何检查 NPM 包名称是否可用?
- azure - 运行由 VS2019 创建的 Azure Docker 容器注册表
- google-api - GMail API 用户速率在较长时间内受到限制
- python - 为什么 cf.go_offline 在 pyCharm 中不起作用
- java - org.springframework.data.domain.PageImpl 不能转换为
- javascript - 如何在 ReactJS 中更改状态?
- javascript - 在 Discord.js 中实例化嵌入对象时出错