PyCharm: 无法使用 docker-compose 创建远程 python 解释器

PyCharm: Can't create remote python interpreter using docker-compose

尝试在 PyCharm 中创建 docker-compose python 解释器时出现错误:

Error while parsing "/Users/belek/Projects/project/docker-composee.yml": Process docker-compose config failed.

本身 docker-compose 工作正常。终端中的 docker-compose config 命令 运行 也可以。

在更新 macOS 和 PyCharm 之前,我成功地使用了 docker-compose python 解释器。不明白怎么了。我在 JB YouTrack 中创建了问题,但没有响应。

PyCharm 2019.2.3
macOS 卡特琳娜 10.15

以下对我有帮助。

转到 'System Preferences' -> 'Security & Privacy'。

将 PyCharm 添加到 "Full Disk Access" 和 "Developer tools"。