Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anaconda镜像安装提示warning,存在包冲突 #1176

Closed
doupongzeng opened this issue Feb 24, 2021 · 3 comments
Closed

Anaconda镜像安装提示warning,存在包冲突 #1176

doupongzeng opened this issue Feb 24, 2021 · 3 comments

Comments

@doupongzeng
Copy link

发生了什么(What happened)

  1. 修改.condarc 为镜像使用帮助提供
channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

运行
conda install -c conda-forge scrapy
输出有warning,scrapy能够正常安装。

Collecting package metadata (current_repodata.json): done
Solving environment: \
Warning: 8 possible package resolutions (only showing differing packages):
  - https://repo.anaconda.com/pkgs/main/noarch::certifi-2020.6.20-pyhd3eb1b0_3, https://repo.anaconda.com/pkgs/main/win-64::ca-certificates-2020.10.14-0, https://repo.anaconda.com/pkgs/main/win-64::openssl-1.1.1h-he774522_0
  - defaults/noarch::certifi-2020.6.20-pyhd3eb1b0_3, https://repo.anaconda.com/pkgs/main/win-64::ca-certificates-2020.10.14-0, https://repo.anaconda.com/pkgs/main/win-64::openssl-1.1.1h-he774522_0
  - defaults/win-64::openssl-1.1.1h-he774522_0, https://repo.anaconda.com/pkgs/main/noarch::certifi-2020.6.20-pyhd3eb1b0_3, https://repo.anaconda.com/pkgs/main/win-64::ca-certificates-2020.10.14-0
  - defaults/noarch::certifi-2020.6.20-pyhd3eb1b0_3, defaults/win-64::openssl-1.1.1h-he774522_0, https://repo.anaconda.com/pkgs/main/win-64::ca-certificates-2020.10.14-0
  - defaults/win-64::ca-certificates-2020.10.14-0, defaults/win-64::openssl-1.1.1h-he774522_0, https://repo.anaconda.com/pkgs/main/noarch::certifi-2020.6.20-pyhd3eb1b0_3
  - defaults/noarch::certifi-2020.6.20-pyhd3eb1b0_3, defaults/win-64::ca-certificates-2020.10.14-0, defaults/win-64::openssl-1.1.1h-he774522_0
  - defaults/win-64::ca-certificates-2020.10.14-0, https://repo.anaconda.com/pkgs/main/noarch::certifi-2020.6.20-pyhd3eb1b0_3, https://repo.anaconda.com/pkgs/main/win-64::openssl-1.1.1h-he774522_0
  - defaults/noarch::certifi-2020.6.20-pyhd3eb1b0_3, defaults/win-64::ca-certificates-2020.10.14-0, https://repo.anaconda.com/pkgs/main/win-64::openssl-1.1.1h-he774522done
  1. 修改.condarc 为 #985提到的解决办法
    依然不起作用,报一样的warning
  2. 尝试执行 #719提到的测试
    进行创建是没有warning的,一切正常

期望的现象(What you expected to happen)

消除warning

如何重现(How to reproduce it)

conda install -c conda-forge scrapy

其他事项(Anything else we need to know)

您的环境(Environment)

  • 操作系统(OS Version):windows 10
@skyzh
Copy link
Member

skyzh commented Feb 24, 2021

在干净的 anaconda 环境里可以复现。应该是 conda 而非镜像源的问题。建议创建一个新环境,并参考这个帖子修改设置。

https://stackoverflow.com/questions/50996083/resolving-package-resolutions-in-conda

conda update --strict-channel-priority --all
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - https://repo.anaconda.com/pkgs/main/linux-64::asn1crypto==0.24.0=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::certifi==2019.3.9=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::cffi==1.11.5=py37he75722e_1
  - https://repo.anaconda.com/pkgs/main/linux-64::chardet==3.0.4=py37_1
  - https://repo.anaconda.com/pkgs/main/linux-64::conda==4.6.11=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::cryptography==2.4.2=py37h1ba5d50_0
  - https://repo.anaconda.com/pkgs/main/linux-64::idna==2.8=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::libffi==3.2.1=hd88cf55_4
  - https://repo.anaconda.com/pkgs/main/linux-64::pip==18.1=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::pycosat==0.6.3=py37h14c3975_0
  - https://repo.anaconda.com/pkgs/main/linux-64::pycparser==2.19=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::pyopenssl==18.0.0=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::pysocks==1.6.8=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::python==3.7.3=h0371630_0
  - https://repo.anaconda.com/pkgs/main/linux-64::requests==2.21.0=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::ruamel_yaml==0.15.46=py37h14c3975_0
  - https://repo.anaconda.com/pkgs/main/linux-64::setuptools==40.6.3=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::six==1.12.0=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::urllib3==1.24.1=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::wheel==0.32.3=py37_0
  - https://repo.anaconda.com/pkgs/main/linux-64::yaml==0.1.7=had09818_2

@skyzh
Copy link
Member

skyzh commented Feb 24, 2021

Related issue: ContinuumIO/anaconda-issues#7173

@doupongzeng
Copy link
Author

Related issue: ContinuumIO/anaconda-issues#7173

感谢解决了问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants