hub icon indicating copy to clipboard operation
hub copied to clipboard

Warning needs be fixed: Deprecation, distutils Version classes are deprecated.

Open hwangdeyu opened this issue 2 years ago • 0 comments

When I run tf2onnx which is using tensorflow_hub, there are some DeprecationWarning encoutered.

lib/python3.9/site-packages/tensorflow_hub/__init__.py:74: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  if (distutils.version.LooseVersion(tf.__version__) <
/home/deyu/anaconda3/envs/py39/lib/python3.9/site-packages/tensorflow_hub/__init__.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  distutils.version.LooseVersion(required_tensorflow_version)):

As the log shown, it may use packaging.version instead packaging.version.

hwangdeyu avatar Aug 08 '22 08:08 hwangdeyu