标签:错误 VSCode 解决方案 汇总 PyCharm IDE 调试
PyCharm出现Remote file _ is mapped to the local path _ and can`t be found错误
问题描述:
- 基于PyCharm做远程开发与远程调试;
- 当涉及到paddlenlp相关代码的调试时;
- 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”错误,具体的如下图所示;
- 用VS Code调试同样的代码时,也会出现相似情况,并无法调试。
解决方案:
- pip3 install opencv-python-headless
引发问题的原因:
- PaddleNLP库非法引用了cv包,导致pip3 install paddlenlp时,没有自动安装所有的被引包;
- 该错误与PyCharm、VSCode等IDE无关;
- 该错误只与PaddleNLP相关!
找到解决方案的方法:
- 换VSCode进行远程开发与调试同样的代码,VSCode报出同样的错误(忘记截图了),但给出的提示比PyCharm更加具体!
- 在VSCode给出的错误中,明确指出了“ImportError: No module named cv”。
标签:错误,
VSCode,
解决方案,
汇总,
PyCharm,
IDE,
调试
From: https://www.cnblogs.com/fengyubo/p/16801609.html