. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 184.94.213.167 / Your IP :
216.73.216.174 [
Web Server : LiteSpeed System : Linux premium282.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : whatdo54321 ( 1549) PHP Version : 8.4.14 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.6/site-packages/pip/commands/__pycache__/ |
Upload File : |
3
�PfD � @ s` d dl mZ d dlZd dlmZ d dlmZmZmZ d dl m
Z
d dlmZ G dd� de
�Z
dS ) � )�absolute_importN)�
WheelCache)�InstallRequirement�RequirementSet�parse_requirements)�Command)�InstallationErrorc s4 e Zd ZdZdZdZdZ� fdd�Zdd� Z� Z S ) �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``.
� uninstallzU
%prog [options] <package> ...
%prog [options] -r <requirements file> ...zUninstall packages.c sV t t| �j||� | jjddddg ddd� | jjdd d
ddd
� | jjd| j� d S )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 )�superr �__init__Zcmd_optsZ
add_option�parserZinsert_option_group)�self�args�kw)� __class__� �/usr/lib/python3.6/uninstall.pyr s zUninstallCommand.__init__c
C s� | j |���}tjjt� t� �}t|j|�}td d d |j||d�}x$|D ]}|j t
j||j|d�� qFW x2|jD ](}x"t
||||d�D ]} |j | � q�W qnW |js�tdt| jd� ��|j|jd� W d Q R X d S )N)Z build_dirZsrc_dirZdownload_dir�isolated�session�wheel_cache)r r )�optionsr r zLYou must give at least one requirement to %(name)s (see "pip help %(name)s"))�name)Zauto_confirm)Z_build_session�pip�indexZ
FormatControl�setr � cache_dirr Z
isolated_modeZadd_requirementr Z from_liner r Zhas_requirementsr �dictr"