导入时,远程调试器无法在pycharm上找到wsl2 PYTHONPATH中的模块。我在该导入行设置了一个调试行断点,然后进入代码,一个名为<frozen importlib._bootstrap>
的文件打开并通知我:
Remote file /mnt/c/Users/wilso/Desktop/Korem_lab/git/ is mapped to the local path C:\Users\wilso\Desktop\Korem_lab\git\ and can't be found.
You can continue debugging, but without the source.
To fix that you can do one of the following:
Edit settings of path mappingcin remote debug configuration
...
因此,我转到我的路径映射配置,以确保远程和本地被正确链接,但错误不会消失。这只是pycharm端的一个bug吗?这非常令人沮丧。
发布于 2021-04-21 01:32:06
是的,恐怕是这样的,这是一个长期存在的错误。有关示例,请参阅this问题。
https://stackoverflow.com/questions/63017706
复制相似问题