IDE相关问题与解决方案汇总

 

PyCharm出现Remote file _ is mapped to the local path _ and can`t be found错误

问题描述:
  1. 基于PyCharm做远程开发与远程调试;
  2. 当涉及到paddlenlp相关代码的调试时;
  3. PyCharm出现“Remote file _ is mapped to the local path _ and can`t be found. You can continue debugging, but without the source. To fix that you can do one of the following”错误,具体的如下图所示;
  4. 用VS Code调试同样的代码时,也会出现相似情况,并无法调试。
解决方案:
  1. pip3 install opencv-python-headless
引发问题的原因:
  1. PaddleNLP库非法引用了cv包,导致pip3 install paddlenlp时,没有自动安装所有的被引包;
  2. 该错误与PyCharm、VSCode等IDE无关;
  3. 该错误只与PaddleNLP相关!
找到解决方案的方法:
  1. 换VSCode进行远程开发与调试同样的代码,VSCode报出同样的错误(忘记截图了),但给出的提示比PyCharm更加具体!
  2. 在VSCode给出的错误中,明确指出了“ImportError: No module named cv”。
 
posted @ 2022-10-18 09:49  健康平安快乐  阅读(262)  评论(0编辑  收藏  举报