![](/img/trans.png)
[英]Is there a way that command prompt could run a python file from Visual Code Studio?
[英]Open command prompt from Visual Studio instead of Powershell for python execution
我正在使用 Visual Studio(不是“代码”)来调试 python 项目,我的问题是一个项目包含一个为 linux 编写的需要运行的 sh 脚本。 Visual Studio 仅提供“在 powershell 中运行”命令,但是 powershell 不适用于 cygwin,而命令提示符可以。 我试图从自己运行命令提示符,但我无法激活 Visual Studio 正在使用的 python 虚拟环境,我的权限被拒绝。
H:\git\someproject>H:\git\someproject\MYVENV\Scripts\python.exe -m venv MYVENV
Error: [Errno 13] Permission denied: 'H:\\git\\someproject\\MYVENV\\Scripts\\python.exe'
那么,是否没有选项可以使用命令提示符而不是 powershell ?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.