Discussion:
[conda] updating an environment only through conda-forge channel
Arnuld
2018-11-04 05:39:57 UTC
Permalink
I have Miniconda installed with 2 environments: **base** and *gis*.
Packages in **gis** were installed from *coda-forge*. I have 2 questions:

Q1) want to update all packages in **gis** environment only from
*conda-forge*. Am I using correct command ?

Q2) Why it is downgrading numpy-base ? It is updating other packages and
when *conda-forge* still has several newer versions of 1.15.3 of
numpy-base, why it is being downgraded ?


(gis) [***@arch64 ~]$ conda update --all -c conda-forge
Solving environment: done

## Package Plan ##

environment location: /home/arnuld/.local/miniconda/envs/gis


The following packages will be downloaded:

package | build
---------------------------|-----------------
matplotlib-3.0.1 | h8a2030e_1 6 KB
conda-forge
openblas-0.3.3 | ha44fe06_1 13.7 MB
conda-forge
libopenblas-0.2.20 | h9ac9557_7 8.8 MB
numpy-base-1.14.3 | py36h0ea5e3f_1 4.1 MB
blas-1.1 | openblas 1 KB
conda-forge
krb5-1.16.2 | hbb41f41_0 1.4 MB
conda-forge
scipy-1.1.0 |py36_blas_openblashb06ca3d_202 39.8
MB conda-forge
mkl_random-1.0.2 | py36_0 1.3 MB
conda-forge
numpy-1.15.3 |py36_blas_openblashb06ca3d_0 9.4
MB conda-forge
matplotlib-base-3.0.1 | py36hc039c98_1 9.2 MB
conda-forge
------------------------------------------------------------
Total: 87.6 MB

The following NEW packages will be INSTALLED:

libopenblas: 0.2.20-h9ac9557_7
matplotlib-base: 3.0.1-py36hc039c98_1 conda-forge
openblas: 0.3.3-ha44fe06_1 conda-forge

The following packages will be UPDATED:

blas: 1.0-mkl -->
1.1-openblas conda-forge
krb5: 1.16.1-hbb41f41_0 conda-forge -->
1.16.2-hbb41f41_0 conda-forge
matplotlib: 2.2.3-py36h8e2386c_0 conda-forge -->
3.0.1-h8a2030e_1 conda-forge
mkl_random: 1.0.1-py36_0 conda-forge -->
1.0.2-py36_0 conda-forge
numpy: 1.15.0-py36h1b885b7_0 -->
1.15.3-py36_blas_openblashb06ca3d_0 conda-forge [blas_openblas]
scipy: 1.1.0-py36hc49cb51_0 -->
1.1.0-py36_blas_openblashb06ca3d_202 conda-forge [blas_openblas]

The following packages will be DOWNGRADED:

numpy-base: 1.15.0-py36h3dfced4_0 -->
1.14.3-py36h0ea5e3f_1

Proceed ([y]/n)? n
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/fe516887-40eb-4357-ae84-d1f3d59ba6a0%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Paul Hobson
2018-11-04 14:38:57 UTC
Permalink
Arnuld,

Ha. I have a "gis" environment that suffers this same issue. I think the
trick is to remove "defaults" from the list of approved channels. You do
that (I think) either with a `conda config` command or by editing your
.condarc file directly.
-paul
Post by Arnuld
I have Miniconda installed with 2 environments: **base** and *gis*.
Q1) want to update all packages in **gis** environment only from
*conda-forge*. Am I using correct command ?
Q2) Why it is downgrading numpy-base ? It is updating other packages and
when *conda-forge* still has several newer versions of 1.15.3 of
numpy-base, why it is being downgraded ?
Solving environment: done
## Package Plan ##
environment location: /home/arnuld/.local/miniconda/envs/gis
package | build
---------------------------|-----------------
matplotlib-3.0.1 | h8a2030e_1 6 KB
conda-forge
openblas-0.3.3 | ha44fe06_1 13.7 MB
conda-forge
libopenblas-0.2.20 | h9ac9557_7 8.8 MB
numpy-base-1.14.3 | py36h0ea5e3f_1 4.1 MB
blas-1.1 | openblas 1 KB
conda-forge
krb5-1.16.2 | hbb41f41_0 1.4 MB
conda-forge
scipy-1.1.0 |py36_blas_openblashb06ca3d_202 39.8
MB conda-forge
mkl_random-1.0.2 | py36_0 1.3 MB
conda-forge
numpy-1.15.3 |py36_blas_openblashb06ca3d_0 9.4
MB conda-forge
matplotlib-base-3.0.1 | py36hc039c98_1 9.2 MB
conda-forge
------------------------------------------------------------
Total: 87.6 MB
libopenblas: 0.2.20-h9ac9557_7
matplotlib-base: 3.0.1-py36hc039c98_1 conda-forge
openblas: 0.3.3-ha44fe06_1 conda-forge
blas: 1.0-mkl -->
1.1-openblas conda-forge
krb5: 1.16.1-hbb41f41_0 conda-forge -->
1.16.2-hbb41f41_0 conda-forge
matplotlib: 2.2.3-py36h8e2386c_0 conda-forge -->
3.0.1-h8a2030e_1 conda-forge
mkl_random: 1.0.1-py36_0 conda-forge -->
1.0.2-py36_0 conda-forge
numpy: 1.15.0-py36h1b885b7_0 -->
1.15.3-py36_blas_openblashb06ca3d_0 conda-forge [blas_openblas]
scipy: 1.1.0-py36hc49cb51_0 -->
1.1.0-py36_blas_openblashb06ca3d_202 conda-forge [blas_openblas]
numpy-base: 1.15.0-py36h3dfced4_0 -->
1.14.3-py36h0ea5e3f_1
Proceed ([y]/n)? n
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/fe516887-40eb-4357-ae84-d1f3d59ba6a0%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/fe516887-40eb-4357-ae84-d1f3d59ba6a0%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CADT3MEC%2BrKV2dx90%2Bqo53vpQuBgp%2Bk0rz0UcjVxT5V1B4uhanA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Arnuld
2018-11-05 05:55:07 UTC
Permalink
Post by Paul Hobson
Ha. I have a "gis" environment that suffers this same issue. I think the
trick
Post by Paul Hobson
is to remove "defaults" from the list of approved channels.
Hey Paul,

This issue of incompatibility of *defaults* and *conda-forge* channel is
pretty much everywhere I see:


https://github.com/conda-forge/numpy-feedstock/issues/108
https://github.com/conda-forge/conda-forge.github.io/issues/232


Since almost all packages which are in *defaults* channel are already in
*conda-forge* and "mkl" library from *defaults* is not Open-Source but its
replacement "blas" is, I decided to get rid of *defaults* and replace it
with *conda-forge*. So What I did is this:

- remove Miniconda installation (miniconda directory and config files
etc)
- installed it again
- conda config --add channels conda-forge
- conda install conda
- conda update --all


This changed the config file:


[***@arch64 ~]$ cat .condarc
channels:
- conda-forge
- defaults
[***@arch64 ~]$

That means *conda-forge* got priority over *defaults* and all packages will be
searched first in *conda-forge* and if not found there, only then in *defaults*.
Works for me:

[***@arch64 ~]$ conda install conda
Solving environment: done

## Package Plan ##

environment location: /mnt/sda5/.miniconda3

added / updated specs:
- conda


The following packages will be downloaded:

package | build
---------------------------|-----------------
conda-4.5.11 | py37_1000 651 KB conda-forge
ca-certificates-2018.10.15 | ha4d7672_0 135 KB conda-forge
openssl-1.0.2p | h470a237_1 3.1 MB conda-forge
certifi-2018.10.15 | py37_1000 138 KB conda-forge
------------------------------------------------------------
Total: 4.0 MB

The following packages will be UPDATED:

ca-certificates: 2018.03.07-0 --> 2018.10.15-ha4d7672_0 conda-forge
certifi: 2018.8.24-py37_1 --> 2018.10.15-py37_1000 conda-forge
conda: 4.5.11-py37_0 --> 4.5.11-py37_1000 conda-forge
openssl: 1.0.2p-h14c3975_0 --> 1.0.2p-h470a237_1 conda-forge

Proceed ([y]/n)? y
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/9fb9ad32-7d25-4074-934f-05222faa30e0%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
l***@gmail.com
2018-11-15 15:44:25 UTC
Permalink
I think the trick is to remove "defaults" from the list of approved
channels.
..SNIP..
Yeah Paul, I have removed the defaults group and using only conda-forge.
This worked great :)
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/db959ab8-0d4a-4220-b6ba-3e22b47f2d36%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...