Conda uninstall one package and one package only(conda卸载一个包,只卸载一个包)
问题描述
当我尝试从 conda 虚拟环境中卸载 pandas 时,我发现它也尝试卸载更多包:
When I try to uninstall pandas from my conda virtual env, I see that it tries to uninstall more packages as well:
$ conda uninstall pandas
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ....
Solving package specifications: .........
Package plan for package removal in environment /Users/amelio/anaconda/envs/py35:
The following packages will be downloaded:
package | build
---------------------------|-----------------
dask-0.7.6 | py35_0 276 KB
The following packages will be REMOVED:
blaze: 0.10.1-py35_0
odo: 0.5.0-py35_1
pandas: 0.18.1-np111py35_0
seaborn: 0.7.0-py35_0
statsmodels: 0.6.1-np111py35_1
The following packages will be DOWNGRADED:
dask: 0.10.1-py35_0 --> 0.7.6-py35_0
Proceed ([y]/n)?
我想卸载 pandas only 并且不降级任何其他内容.
I would like to uninstall pandas only and not have anything else downgraded.
我知道这些包对 pandas 甚至对熊猫的特定版本具有依赖项,但这甚至可能与conda?
I understand that there these packages have dependencies to pandas and even to specific versions of pandas, but is this even possible at all with conda?
我的理解是 不是那么容易使用 conda 从 GitHub 打包.至少它不像使用 pip 那样简单.
My understanding is that it isn't that easy to install a package from GitHub using conda. At least it isn't as easy as using a one-liner as one can do with pip.
由于我想使用master中的版本,我的计划是卸载conda版本,使用pip安装pandas 来自官方 repo GitHub 上的 master.
Since I want to use the version in master, my plan is to uninstall the conda version and use pip to install pandas from master on the official repo GitHub.
我该怎么做?
推荐答案
你可以使用conda remove --force.
文档说:
--force Forces removal of a package without removing packages
that depend on it. Using this option will usually
leave your environment in a broken and inconsistent
state
这篇关于conda卸载一个包,只卸载一个包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:conda卸载一个包,只卸载一个包
基础教程推荐
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
