![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vscode
vscode使用技巧
mofaxuanfeng
这个作者很懒,什么都没留下…
展开
-
用vscode开发Python 在vscode中设置Python虚拟环境
打开vscode,点击左侧运行与调试,点击添加配置,选择python。会创建launch.json文件,还会创建.vscode文件夹。第一行,引号内的路径是你自己的虚拟环境路径。原创 2022-12-22 10:04:59 · 1089 阅读 · 0 评论 -
使用vscode进行python开发,运行虚拟环境,终端提示此系统中禁止执行脚本Activate.ps1
无法加载文件 C:\pythoncode\webtest\env\Scripts\Activate.ps1,因为在此系统中禁止执行脚本。点击开始菜单栏,找到运行,输入windows powershell,鼠标右键选择使用管理员权限打开windows powershell。再输入命令:Set-ExecutionPolicy Restricted。在powershell中输入:Get-ExecutionPolicy。再到vscode重新运行终端,python虚拟环境可以运行。所在位置 行:1 字符: 2。原创 2022-12-22 09:55:48 · 770 阅读 · 0 评论