Dannytmp
V2EX  ›  问与答

Anaconda 装了镜像却不全用镜像是怎么回事?

  •  
  •   Dannytmp · Oct 29, 2017 · 3608 views
    This topic created in 3296 days ago, the information mentioned may be changed or developed.

    装了清华的镜像用来安装 scrapy,结果安装的时候有些包从官网的 conda-forge,有些从清华镜像下,最后就是安装失败。清华的速度是快,官网的极慢。

    能不能让它只从镜像下呢?

    5 replies  •  2017-10-29 21:29:56 +08:00
    Dannytmp
    Dannytmp
    OP
    Oct 29, 2017
    1
    可能自己搞错了,用了官网的命令参数 -c conda-forge
    Dannytmp
    Dannytmp
    OP
    Oct 29, 2017
    2
    确实是这么回事,设置完镜像后不能再用 -c conda-forge 了,否则就会出现一些包用 conda-forge,一些包用镜像的情况了
    billgreen1
    billgreen1
    Oct 29, 2017❤️1
    3
    可以混用的
    neosfung
    neosfung
    Oct 29, 2017❤️1
    4
    清华也维护 conda-forge 的第三方源

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
    Dannytmp
    Dannytmp
    OP
    Oct 29, 2017
    5
    @billgreen1 @neosfung 是可以混用,所以一开始没注意照抄了 scrapy 上的安装命令,结果就出现了部分用 conda-forge,部分用镜像的情况。把 -c conda-forge 去掉后,全部都用镜像了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1839 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:32 · PVG 17:32 · LAX 01:32 · JFK 04:32
    ♥ Do have faith in what you're doing.