[英]How can I disable python 2.7 code compatibility error message in Pycharm when using wrapper around remote python 3 interpreter?
I want to avoid these kind of messages popping up, as I am not even using python 2.7.我想避免弹出此类消息,因为我什至没有使用 python 2.7。 Note that the code runs fine.请注意,代码运行良好。
I have tried the following things:我尝试了以下事情:
I am using a.sh wrapper around the python executable on the server as I want Pycharm to first source my ~/.bash_profile before using the interpreter (similar to this advice ).我在服务器上的 python 可执行文件周围使用 a.sh 包装器,因为我希望 Pycharm 在使用解释器之前首先获取我的 ~/.bash_profile (类似于此建议)。 I think that this might be the reason PyCharm doesn't recognize it as being python 3: if I point directly to the remote interpreter, the code compatibility issue dissappears.我认为这可能是 PyCharm 无法将其识别为 python 的原因 3:如果我直接指向远程解释器,代码兼容性问题就会消失。
Is there any way to keep the benefits of the wrapper and getting rid of these error messages?有什么方法可以保留包装器的好处并消除这些错误消息?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.