Conda仅卸载一个软件包和一个软件包 [英] Conda uninstall one package and one package only
问题描述
当我尝试从conda
虚拟环境中卸载pandas
时,我看到它也尝试卸载更多软件包:
$ 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
,并且不进行其他任何降级.
我知道这些软件包对熊猫pandas
甚至对特定版本都有依赖项,但是使用conda
甚至可以做到吗? /p>
部分动机
我的理解是,>安装使用conda
从GitHub打包.至少它不如使用pip
可以使用单线那么简单.
由于我要使用master
中的版本,因此我的计划是卸载conda
版本,并使用pip
从官方仓库GitHub上的主服务器安装pandas
.
我该怎么做?
您可以使用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
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)?
I would like to uninstall pandas
only and not have anything else downgraded.
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
?
Partial motivation
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
.
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.
How can I do this?
You can use conda remove --force
.
The documentation says:
--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仅卸载一个软件包和一个软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!