問題描述
當我嘗試從 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卸載一個包,只卸載一個包的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!