提交 804f4889 编写于 作者: W wuzewu

Add the processing of PaddlePaddle development version.

上级 6112bd38
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
__version__ = '2.0.4' __version__ = '2.1.0'
import paddle import paddle
from packaging.version import Version from packaging.version import Version
_paddle_version = Version(paddle.__version__) _paddle_version = Version(paddle.__version__)
if _paddle_version < Version('2.0.0'): if _paddle_version < Version('2.0.0') and _paddle_version != Version('0.0.0'):
raise RuntimeError( raise RuntimeError(
'Version mismatch in PaddleHub and PaddlePaddle, you need to upgrade PaddlePaddle to version 2.0.0 or above.') 'Version mismatch in PaddleHub and PaddlePaddle, you need to upgrade PaddlePaddle to version 2.0.0 or above.')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册