当我在docker搭建完成之后,配置pycharm时,如下图,点击OK后,出现错误。
错误提示:
com.github.dockerjava.api.exception.BadRequestException: {"message":"OCI runtime create failed: container_linux.go:345: starting container process caused \"exec: \\\"python\\\": executable file not found in $PATH\": unknown"}
解决方法:
将Python interpreter path默认的python,改成python3
可能原因:
由于我当前选择的镜像只安装了python3,容器终端下只能python3进入python,且不识别python命令。