简体   繁体   English

无法在 Anaconda 中安装 VS Code

[英]Unable to install VS Code in Anaconda

I just downloaded Anaconda and I would like to install VS Code from the Navigator.我刚刚下载了 Anaconda,我想从 Navigator 安装 VS Code。

I clicked on Install , and then I have the loading wheel for few seconds, and then nothing.我点击了Install ,然后我有几秒钟的加载轮,然后什么都没有。 The Install button turns green again, instead of changing to Launch : Install按钮再次变为绿色,而不是更改为Launch

before:前: 在此处输入图片说明

during:期间: 在此处输入图片说明

After:后: 在此处输入图片说明

There is no error messages to explain me what is the problem.没有错误消息来解释我的问题是什么。

I'm working on Windows 10 64 bits.我正在使用 Windows 10 64 位。

How can I install VS Code from Anaconda ?如何从 Anaconda 安装 VS Code? Thanks谢谢

  1. Ensure you have installed VS Code externally.确保您已在外部安装 VS Code。
  2. Open VS Code, click "Extensions" on left-side of the panel.打开 VS Code,点击面板左侧的“扩展”。
  3. Ensure "Anaconda Extension Pack" is installed, if not, install it first.确保安装了“Anaconda Extension Pack”,如果没有,请先安装。
  4. After finished installing "Anaconda Extension Pack", close VS Code.安装完“Anaconda Extension Pack”后,关闭VS Code。
  5. Open Anaconda Navigator using Administrator rights.使用管理员权限打开 Anaconda Navigator。
  6. VS Code should be in Home, under Applications on "base (root)". VS Code 应该在 Home 中,在“base (root)”上的 Applications 下。 If not, click "Refresh" button on right-hand side.如果没有,请单击右侧的“刷新”按钮。

I had the same problem.我有同样的问题。 It only worked appropriately when I used install for all users and kept the default location.只有当我为所有用户使用安装并保留默认位置时,它才能正常工作。 Neither a custom location with no spaces nor an installation on a default location on current user only worked.没有空格的自定义位置和在当前用户的默认位置上的安装都不起作用。 I would suggest you try that, Install for all users on the default location (C:\\ProgramData\\Anaconda3)我建议您尝试一下,在默认位置为所有用户安装 (C:\\ProgramData\\Anaconda3)

I found I didn't have to "install for all users" as GeorgeRob suggests above, I only had to first install VS Code (which is a separate source-code editor from Microsoft that's absolutely free), then install the "Extension for Anaconda" found within VS Code (you can find and select it from the Extensions menu which can be found on the far left side of the Welcome Page and symbolized by an icon composed of four squares with one detached), and THEN AND ONLY THEN install Anaconda.我发现我不必像上面 GeorgeRob 建议的那样“为所有用户安装”,我只需要先安装 VS Code(这是一个完全免费的 Microsoft 的单独源代码编辑器),然后安装“Anaconda 的扩展” " 在 VS Code 中找到(您可以从扩展菜单中找到并选择它,该菜单位于欢迎页面的最左侧,由四个正方形组成的图标表示,其中一个正方形已分离),然后安装 Anaconda . The missing tile finally appeared after those two preparatory steps!经过这两个准备步骤,丢失的瓷砖终于出现了!

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

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