V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Dannytmp
V2EX  ›  问与答

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

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

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

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

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

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