-
2021-12-31 22:02:35
pip freeze > allpackages.txt pip uninstall -r allpackages.txt -y
更多相关内容 -
Python-pip卸载命令的增强能删除卸载软件包的所有依赖关系
2019-08-10 03:03:27pip 安全移除依赖包(基于引用计数, 解决多重依赖) -
如何使用Pip卸载软件包?
2020-10-05 03:49:04Python Pip command provides search, install, update, uninstall packages. We can use pip command to uninstall packages easily even there are some alternatives ...Python Pip命令提供搜索,安装,更新,...Python Pip command provides search, install, update, uninstall packages. We can use pip command to uninstall packages easily even there are some alternatives like easy_install.
Python Pip命令提供搜索,安装,更新,卸载软件包。 即使有easy_install之类的替代方法,我们也可以使用pip命令轻松卸载软件包。
用Pip列出已经安装的Python软件包 (List Already Installed Python Packages with Pip)
Before uninstalling or removing Python packages with pip we will list already installed Python packages. We will use
list
command for pip like below.在通过pip卸载或删除Python软件包之前,我们将列出已安装的Python软件包。 我们将如下所示对pip使用
list
命令。$ pip list
List Already Installed Python Packages with Pip 用Pip列出已经安装的Python软件包 We can see that the following information is provided by listing installed packages.
通过列出已安装的软件包,我们可以看到以下信息。
- `Package` column shows the package complete name “包裹”列显示包裹的完整名称
- `Version` column shows the most recent version of the given package“版本”列显示了给定软件包的最新版本
列出/显示Python软件包信息,版本(List/Display Python Packages Information, Version)
We can also show a given package complete information with the
show
command which can be useful before uninstalling it. In this example, we will show information about the Python package named Django.我们还可以使用
show
命令显示给定的软件包完整信息,这在卸载之前可能很有用。 在此示例中,我们将显示有关名为Django的Python软件包的信息。$ pip show django
List/Display Python Packages Information, Version 列出/显示Python软件包信息,版本 使用Pip,Pip2,Pip3卸载/删除Python软件包(Uninstall/Remove Python Package with Pip, Pip2, Pip3)
We can uninstall the package with the
uninstall
pip command. We will also provide the package name. In this example, we will uninstall the package nameddjango
.我们可以使用
uninstall
pip命令来卸载软件包。 我们还将提供包裹名称。 在此示例中,我们将卸载名为django
的软件包。$ pip uninstall django
Uninstall/Remove Python Package with Pip 使用Pip卸载/删除Python软件包 We can see that the directories and files removed are listed and a confirmation is shown where we will input
y
in order to accept the removal. After the remove/uninstall completed we will be shownSuccessfully uninstalled Django-2.2.5
我们可以看到列出了删除的目录和文件,并显示了一个确认,我们将在其中输入
y
以接受删除。 删除/卸载完成后,我们将显示Successfully uninstalled Django-2.2.5
If we want to remove packages related to the Python2 we can use the same command for the
pip2
command like below.如果我们想删除与Python2相关的软件包,我们可以对
pip2
命令使用相同的命令,如下所示。$ pip2 uninstall django
If we want to remove packages related to the Python3 we can use the same command for the
pip3
command like below.如果我们想删除与Python3相关的软件包,我们可以对
pip3
命令使用相同的命令,如下所示。$ pip3 uninstall django
使用Pip卸载/删除具有要求的Python软件包 (Uninstall/Remove Python Package with Requirements with Pip)
Modern Python applications and projects provide the required files in order to list the package list which should be installed. We can use this requirement file in order to specify the packages we have to remove the requirement file. In this example, the requirement file contains the following content with the name of
requirements.txt
.现代Python应用程序和项目提供了必需的文件,以便列出应安装的软件包列表。 我们可以使用此需求文件来指定必须删除需求文件的软件包。 在此示例中,需求文件包含以下内容,其名称为
requirements.txt
。django pycups PyGObject PyJWT pymacaroons PyNaCl pyRFC3339
AND we will remove this requirements.txt file content like below.
并且我们将删除此requirements.txt文件内容,如下所示。
$ pip uninstall requirements.txt
无需询问Pip即可卸载/删除Python软件包 (Uninstall/Remove Python Package Without Asking Confirmation with Pip)
By default the package uninstallation or removal requires a confirmation from the user. This is generally providing the
y
which is a short form ofYes
to accept package uninstall. We can automatically accept the confirmation and skip it with the-y
or--yes
option like below.默认情况下,软件包的卸载或删除需要用户的确认。 通常,这是提供
y
形式,Yes
接受软件包卸载的缩写。 我们可以自动接受确认,并使用-y
或--yes
选项跳过它,如下所示。$ pip uninstall -y django $ pip2 uninstall -y django $ pip3 uninstall -y django
使用Pip卸载/删除特定用户的Python软件包 (Uninstall/Remove Python Package For Specific User with Pip)
pip Python packages may be installed for a specific user into the users home directory. So we can uninstall given python package for a specific user with the
--user
option by providing the user name. In this example, we will remove packages for the current user.pip Python软件包可以为特定用户安装到用户的主目录中。 因此,我们可以使用
--user
选项通过提供用户名来卸载特定用户的给定python软件包。 在此示例中,我们将删除当前用户的软件包。$ pip uninstall --user django $ pip2 uninstall --user django $ pip3 uninstall --user django
使用easy_install卸载/删除Python软件包 (Uninstall/Remove Python Package with easy_install)
We can also use the
easy_install
command in order to remove installed python packages. We will use-m
option and provide the package name. In this example, we will remove the package named django with the easy_install command.我们还可以使用
easy_install
命令来删除已安装的python软件包。 我们将使用-m
选项并提供软件包名称。 在此示例中,我们将使用easy_install命令删除名为django的软件包。$ easy_install -m django
了解更多如何为Linux安装Numpy?翻译自: https://www.poftut.com/how-to-uninstall-a-package-with-pip/
-
Python 技巧篇-pip卸载python库实例演示,查看pip命令大全方法
2019-03-05 19:42:07Python 技巧篇-pip卸载python库实例演示,查看pip命令大全方法。 因为安装的 PyHook3 没安装对吧,有点问题,就想着把它卸载掉,然后再重新安装一个,那应该怎么卸载呢? 非常简单,就是 pip uninstall xxx,正好和...因为安装的 PyHook3 没安装对吧,有点问题,就想着把它卸载掉,然后再重新安装一个,那应该怎么卸载呢?
非常简单,就是
pip uninstall xxx
,正好和我们安装时的pip install xxx
对应,下面还有一个确定操作,填y
就是继续了,n
就是取消了。python 库卸载演示:
cmd 直接输入 pip,回车就可以看到 pip 的命令大全了。C:\Users\Administrator>pip Usage: pip <command> [options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global configuration. search Search PyPI for packages. cache Inspect and manage pip's wheel cache. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. debug Show information useful for debugging. help Show help for commands. General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels). --log <path> Path to a verbose appending log. --no-input Disable prompting for input. --proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port. --retries <retries> Maximum number of retries each connection should attempt (default 5 times). --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort. --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS. --cert <path> Path to alternate CA bundle. --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir <dir> Store the cache data in <dir>. --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. --no-color Suppress colored output --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons. --use-feature <feature> Enable new functionality, that may be backward incompatible. --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
喜欢的点个赞❤吧!
-
pip升级、卸载命令
2018-06-04 09:39:26on linux or mac:pip install -U pipon windows:python -m pip install -U pipon linux or mac:
pip install -U pip
on windows:
python -m pip install -U pip
uninstall:
python -m pip uninstall pip
-
python pip安装、更新、卸载、查看等常用命令汇总
2022-03-29 09:40:45Python和pycharm的使用 1. pycharm和Python下载 安装后需要激活码。判断Python是否安装好了,... 这是为了pip的使用,为了安装第三方库的方便,跑命令:pip install xxx。否则的话自己上网查找 下载库包。然后pyt... -
pip安装、卸载依赖包的命令
2020-06-04 10:36:281.【下载】 python -m pip install --upgrade pip 2.【指定下载】 python3 -m pip install pip==20.0.2 -
python使用pip卸载和安装库
2020-07-14 20:11:01pip 先来演示pip的错误打开方式: C:\Users\86188>py Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for... -
【Python技巧】:pip卸载后,如何安装pip
2021-10-14 21:56:05【Python技巧】:pip卸载后,如何安装pip -
【pip】之安装、更新与卸载指令
2021-12-16 15:12:58一、【安装】 # 没有版本要求 pip install package_name # 有版本要求(假如为1.1.1) pip install package_name==1.1.1 ...pip install --upgrade package_name ...三、【卸载】 pip uninstall package_name -
Windows10下python pip卸载并重新安装
2021-09-18 21:13:58pip已经升级到最新版本,但还是会提示我在使用旧版本,所以把pip卸载并重新安装一次,之后就没有再提示升级了 卸载pip中间会有一个提示,输入Y即可 python -m pip uninstall pip 找到python所在的目录,进入到子... -
pip的安装和卸载
2020-08-07 08:54:02检测是否安装pip方法 $ pip -bash: pip: command not found command not found的提示说明你还没有安装pip 安装 安装好Python环境的本地都有 easy_install 执行程序,我们这里主要使用 easy_install 来安装。 ... -
Windows下卸载pip的方法
2021-02-19 17:20:40一、卸载命令 在cmd中输入 python -m uninstall pip 二、执行命令后,弹出确认提示,输入y,给与确认 三、cmd中输入pip,查看是否安装卸载成功 -
windows下将python自带的pip卸载了,怎么重新装pip
2021-01-26 15:38:51windows下将python自带的pip卸载了,怎么重新装pip 在更新pip的时候没有安装成功,但是却卸载成功了!于是乎pip就没有了。解决办法: 找到你python的安装目录的scripts文件夹。 win+R打开DOS命令窗口输入cmd; ... -
关于pip的安装,更新,卸载模块以及使用方法(详解)
2020-12-25 07:03:36在Python的学习过程中,肯定会遇到很多安装模块的地方,可以使用easy_install安装,但是easy_install相对于pip而言,最大的缺陷就是它所安装的模块是不能够卸载的,其他功能是和pip一样的。 下面介绍一下pip的安装:... -
pip卸载或pip19.0.3升级失败
2019-06-12 20:49:191、每次升级失败都提示:python -m pip install --upgrade pip,并没有...然后使用命令python get-pip.py 网上说有用,可能我的网络原因未成功 最后下载pip19.0.3的gz包,解压后,在文件夹内运行命令行:python se... -
Python pip命令卸载安装出现问题
2022-04-28 11:42:53首先输入pip install pillow后显示 更新后出现 “另一个程序正在使用此文件,进程无法进行” 后来退出终端后,过一段时间打开终端输入pillow install pillow显示No module named pip 再后来不管是输入pip卸载命令... -
ubuntu下pip的安装,更新及卸载
2021-05-13 17:35:33linux关机重启命令浅析 linux关机重启命令 今天我们来介绍下linux系统中常用到的关机重启命令—shutdown.halt.reboot.poweroff以及init. shutdown命令 以安全的方式关闭系统或重启 ... Fedora 17 安装 完全 指南 一... -
python Pip安装卸载,命令 & 常用选项
2021-01-03 22:47:59pip是一个很方便的工具, 可以方便安装, 列出, 卸载python的模块/库/包等 常见使用, 例如: cmd下: 安装pycurl包 pip install pycurl ...以下是pip全部命令参数 : Usage: pip [options] Commands: install 安装 uninst -
不小心将python带的pip卸载了,怎么办?
2020-02-05 13:02:48不小心将python带的pip卸载了,怎么办? 刚在更新pip的时候没有安装成功,但是却卸载成功了!于是乎pip就没有了。上网一查找到解决办法。 找到你python的安装目录的scripts文件夹。 win+R打开DOS命令窗口输入... -
PIP卸载升级与安装不成功
2021-02-07 16:00:09在一顿没用的查找后发现目录下有两个pip,包括这两个版本,删除后并没有得到改善,再次输入升级命令后,目录下新版本出现,但命令提示符窗口仍旧是相同报错。 最后在尝试卸载重装时发现,我的电脑真的安装了两个pip... -
不小心将 pip 卸载了,重新安装pip
2018-02-25 18:09:09打开 python 安装目录 下的 ...在弹出的窗口中执行命令 easy_install.exe pip 即可。 如果 python 安装目录下 的 Scripts 目录中有没有 easy_install.exe 参见 http://blog.csdn.net/la6nf/article/details/7... -
pip的卸载、重装、升级(from pip19.3 to pip20.1)
2021-03-05 23:39:18问题起因安装库失败,并且报错:You are using pip version ...在尝试卸载pip重装后发现easy_install命令失效后,经历波折,发现下面命令解决问题pip从19.3升级20.1比较方便:问题解决:①卸载PIP的命令:python -m ... -
Python基础:pip的安装与卸载
2022-03-29 17:22:33二、pip的卸载:pip uninstall 模板名 出现此界面,输入y确定卸载,输入n取消卸载 出现Successfully即卸载成功 三、列出已安装的版本 1、pip list 2、pip freeze 区别:第二个方... -
卸载pip的方法
2018-09-19 16:04:39python -m pip uninstall pip -
使用pip安装和卸载扩展模块
2020-09-08 23:31:07Python 使用pip来管理扩展模块,包括安装和卸载,具体指令包括: pip install xx: 安装xx模块 pip list: 列出已安装的模块 pip install --upgrade xx: 升级xx模块 pip uninstall xx: 卸载xx模块 用pip download... -
Python pip的安装及卸载
2021-05-15 12:04:27然后pip也绑定到了python3.6 然后现在升级python到3.7在使用的过程中发现 使用pip安装的一些扩展直接装到了python3.6下 在Python3.7的版本中不能使用1、卸载pippython -m pip uninstall pip2、安装pipwget htt... -
pip安装&卸载包
2020-02-03 18:16:041. 在线安装:使用pip install + 包名 默认安装最新版本的包: 格式:pip install + 包名 如在完成Python的安装后,我们需要安装pandas这个包,则只需要在终端中输入 pip install pandas ,在网络畅通的条件下,就... -
pip安装与卸载(centos)
2021-05-30 12:23:49卸载: python -m pip uninstall pip pip已经安装,但是/usr/bin/pip: No such file or directory: 1.which pip /usr/local/bin/pip 2.pip -su: /usr/bin/pip: No such file or directory 3.type... -
使用Pip安装和卸载PyTorch(CUDA版)
2021-08-24 17:51:52使用Pip安装CUDA11.3版的PyTorch的命令如下: pip3 install torch==1.10.2+cu113 torchvision==0.11.3+cu113 torchaudio===0.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html 注意:目前...