要添加这些文件,通过在键盘上输入 Ctrl+Shift+P 打开命令面板,搜索 “Remote-Containers: Add Development Container Configuration Files
安装插件 打开vscode并安装插件:“Remote – Containers”(建议直接安装“Remote Development”,随着对remote开发越来越熟练后,里面的功能都会用上的): 安装remote-containers 方法1: 在命令窗口输入:>remote-containers: clone repository in container volume,并回车 输入仓库地址:https://gitee.com/homqyy
torchvision、torchaudio 等依赖;避免 numpy 等库与 PyTorch 编译版本不兼容(如 numpy 2.x 导致的初始化失败);搭配 VS Code 的 Remote-SSH / Remote-Containers
您可以通过执行以下命令来使用此示例:“**>Remote-Containers: Try a Remote Container Sample**” ,然后选择“Java”。
Remote-Containers扩展允许你使用Docker容器作为你的开发容器。容器可以创建很好的开发环境,因为: 你可以在与你要部署代码的操作系统一样的环境中使用一致且易于复制的工具链进行开发。
容器化开发环境:通过Remote-Containers扩展,团队确保了开发环境的一致性。 这种统一的开发体验使跨平台问题减少了约70%,大大加快了产品的迭代速度。