o
    ٷi                     @  sH   d Z ddlmZ ddlZddlmZ ddlmZ ddlm	Z	 dd Z
dS )	ztThis file is the part of 'gradio/cli.py' for printing the environment info
for the cli command 'gradio environment'
    )annotationsN)metadata)Requirement)printc               
   C  s  t d t dt  dD ]"} zt| }t |  d| W q tjy/   t |  d Y qw t d dD ]V} zCt| }t |  d |jdurz|jD ](}t|}zt |j	 d	t|j	  W qM tjyu   t |j	 d
 Y qMw t d W q6 tjy   t |  d Y q6w dS )z%Print Gradio environment information.z>Gradio Environment Information:
------------------------------zOperating System:)gradiogradio_clientz	 version:z package is not installed.z1
------------------------------------------------z# dependencies in your environment:
Nz: z is not installed.
)
r   platformsystemr   versionPackageNotFoundErrordistributionrequiresr   name)package_namepackage_versiondistreqreq_obj r   T/home/ubuntu/.local/lib/python3.10/site-packages/gradio/cli/commands/cli_env_info.pyprint_environment_info   s8   



 r   )__doc__
__future__r   r	   	importlibr   packaging.requirementsr   richr   r   r   r   r   r   <module>   s    