1. 配置python解释器
- 修改程序调试时的python解释器(interpreter)
有几个地方需要设置(不确定哪个地方起作用了还是说都要配置,vs这玩意我觉得设置起来没有Pycharm友好):
1)Code -> preferences -> settings,在弹出的页面上方搜索 interp 然后点击 Remote [SSH: xx.xxx.xxx.xxx] ,点击左侧 Extensions -> Python,把你需要的解释器路径粘贴在框中,如 /home/user1/miniconda3/envs/xxx_yolov5/bin/python
搜索 python.pythonPath 进行同样配置
2)在vscode左侧文件列表,在.vscode文件夹下修改 launch.json,内容如下:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
&#