✏️ 编辑:uninstall.cpython-39.pyc
路径:
/usr/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-39.pyc
大小:2.99 KB · 修改:2026-05-23 08:59:54 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �lj� � @ s� d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z mZ d dlm Z d dlmZ d d lmZ d d lmZmZ d dlmZ e �e�ZG dd � d ee �ZdS )� N)�Values)�List)�canonicalize_name)�Command)�SessionCommandMixin�warn_if_run_as_root)�SUCCESS)�InstallationError)�parse_requirements)�install_req_from_line�#install_req_from_parsed_requirement)�(protect_pip_from_modification_on_windowsc @ s8 e Zd ZdZdZdd�dd�Zeee e d�dd �Z dS ) �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> ...N)�returnc C sD | j jddddg ddd� | j jdd d ddd � | j�d| 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 )Zcmd_optsZ add_option�parserZinsert_option_group)�self� r �D/usr/lib/python3.9/site-packages/pip/_internal/commands/uninstall.py�add_options$ s"