diff --git a/paddlehub/commands/install.py b/paddlehub/commands/install.py index 609b72c7ff20e35fcca5f065fb300d922cfa70ba..9e4ad04ff103bdd272ab4652321520fcb0314b14 100644 --- a/paddlehub/commands/install.py +++ b/paddlehub/commands/install.py @@ -46,7 +46,7 @@ class InstallCommand(BaseCommand): return False extra = {"command": "install"} - if argv[0].endswith("tar.gz") or argv[0].endswith("phm"): + if argv[0].endswith("tar.gz"): result, tips, module_dir = default_module_manager.install_module( module_package=argv[0], extra=extra) elif os.path.exists(argv[0]) and os.path.isdir(argv[0]):