| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pip/_internal/commands/__pycache__/ |
Upload File : |
�
�k�f4 � �� � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ d d lmZ d d
lmZ d dlmZmZ d dlmZmZmZ e j4 e� Z G d
� de
e� Zy)� N)�Values)�List)�canonicalize_name)�
cmdoptions)�Command)�SessionCommandMixin)�SUCCESS)�InstallationError)�parse_requirements)�install_req_from_line�#install_req_from_parsed_requirement)�check_externally_managed�(protect_pip_from_modification_on_windows�warn_if_run_as_rootc �6 � e Zd ZdZdZd d�Zdedee de fd�Z
y)
�UninstallCommandaB
Uninstall packages.
pip is able to uninstall most installed packages. Known exceptions are:
- Pure distutils packages installed with ``python setup.py install``, which
leave behind no metadata to determine what files were installed.
- Script wrappers installed by ``python setup.py develop``.
zU
%prog [options] <package> ...
%prog [options] -r <requirements file> ...�returnNc � � | j j ddddg dd�� | j j dd d
dd�
� | j j t j � � | j j t j � � | j
j
d| j � y )Nz-rz
--requirement�requirements�append�filezjUninstall all the packages listed in the given requirements file. This option can be used multiple times.)�dest�action�default�metavar�helpz-yz--yes�yes�
store_truez2Don't ask for confirmation of uninstall deletions.)r r r r )�cmd_opts�
add_optionr �root_user_action�override_externally_managed�parser�insert_option_group)�selfs �BC:\Python312\Lib\site-packages\pip/_internal/commands/uninstall.py�add_optionszUninstallCommand.add_options) s� � ��
�
� � �������A� !�
�
�
�
� � �����E� !�
�
�
�
� � ��!<�!<�!>�?��
�
� � ��!G�!G�!I�J����'�'��4�=�=�9� �options�argsc � � | j |� }i }|D ]T }t ||j �� }|j r||t |j � <