相关疑难解决方法(0)

在 Visual Studio Code 中自动激活虚拟环境

我希望 VS Code 在运行时打开 venv,但我找不到如何做到这一点。我已经尝试将这一行添加到 settings.json 中:

"terminal.integrated.shellArgs.windows": ["source${workspaceFolder}\env\Scripts\activate"]

但是,它给我一个 127 错误代码。我发现了 127 代码的含义。这意味着,Not found。但是,如果我现在看到我眼中的 venv 文件夹,怎么找不到它?

我认为是终端故障。我正在将 Win 10 与 Git Bash 终端一起使用,这是在您将 Git 安装到您的机器时出现的。

python virtualenv visual-studio-code vscode-settings

15
推荐指数
5
解决办法
2万
查看次数

virtualenv 激活不起作用

我正在尝试创建一个虚拟环境来测试 api。

我可以使用 很好地创建环境virtualenv test,然后我可以 cd 进入它。当我尝试运行时activate,出现此错误:

PS C:\Users\Bright Bridge\Desktop\autocomplete_demo\Scripts> activate
activate : The term 'activate' 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
+ activate
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (activate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Suggestion [3,General]: The command activate was …
Run Code Online (Sandbox Code Playgroud)

python powershell virtualenv

5
推荐指数
4
解决办法
1万
查看次数

如何在vs code中激活conda环境

我使用创建了一个虚拟环境miniconda。我正在使用 Visual Studio Code 和 Mask rcnn,但我无法在 Visual Studio Code 中启动虚拟环境,我得到一个error.Sevinirim

在此输入图像描述

python miniconda visual-studio-code

5
推荐指数
1
解决办法
2万
查看次数