简体   繁体   English

无法在基本conda env外部启动jupyter服务器

[英]can't start jupyter server outside base conda env

I have miniconda installed with a base environment and an additional environment called plantcv. 我安装了miniconda,其中包含基本环境和一个名为plantcv的附加环境。 when I try to select plantcv in vs code as my environment it says "can't start a jupyter server from this environment". 当我尝试在vs代码中选择plantcv作为我的环境时,它显示“无法从该环境启动jupyter服务器”。 But I can launch jupyter notebook from both the base or plantcv environments using the cmd. 但是我可以使用cmd在基本环境或plantcv环境中启动jupyter笔记本。

I've tried with VS COde, VS Code Insiders, and have removed all extensions except Python Extension Pack. 我已经尝试使用VS COde,VS Code Insiders,并删除了除Python Extension Pack之外的所有扩展。

WIndows 10 1903, python 3.7, VS Code Insiders 1.37/VS Code 1.36 视窗10 1903,python 3.7,VS Code Insiders 1.37 / VS Code 1.36

Is there something else I need to do to link conda and vs code? 我还需要做其他事情来链接conda和vs代码吗?

EDIT: 编辑: 加

This appears to be a bug - see the discussion here: https://github.com/microsoft/vscode-python/issues/5197 这似乎是一个错误-请参阅此处的讨论: https : //github.com/microsoft/vscode-python/issues/5197

but I finally got around this by opening anaconda prompt (or git bash) then doing conda activate plantcv then code . 但是我终于通过打开anaconda提示符(或git bash)解决了这个问题,然后执行了conda activate plantcv然后code . and it works. 而且有效。 if you cd to your project directory first then vs code will open in the right directory too. 如果你cd到您的项目目录第一,然后VS代码会在正确的目录中打开过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM