AttributeError: module 'MetaTrader5' has no attribute 'order_close'. Did you mean: 'order_check'?
时间: 2024-02-16 10:59:01 浏览: 34
针对您提到的两个错误,我将分别给出解决方案。
针对引用中的错误"AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'",这个错误通常是由于TensorFlow版本不兼容导致的。在TensorFlow 2.0版本中,'contrib'模块已被移除。解决这个问题的方法是使用TensorFlow 1.x版本或者使用新的API替代'contrib'模块的功能。
针对引用中的错误"AttributeError: module ‘tensorflow._api.v1.compat.v2‘ has no attribute ‘__internal__",这个错误通常是由于TensorFlow版本不兼容导致的。在TensorFlow 2.0版本中,模块结构发生了变化,'__internal__'模块已被移除。解决这个问题的方法是使用TensorFlow 1.x版本或者查看新版本的API文档,找到替代'__internal__'模块的功能。
针对您提到的错误"AttributeError: module 'MetaTrader5' has no attribute 'order_close'. Did you mean: 'order_check'?",这个错误通常是由于MetaTrader5模块中没有名为'order_close'的属性导致的。根据错误提示,您可能想要使用'order_check'属性。请检查您的代码,确保使用正确的属性名称。