程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

无法在 conda 中安装或创建环境

发布于2023-08-21 21:19     阅读(5844)     评论(0)     点赞(18)     收藏(1)


每次我尝试安装软件包或创建环境时conda,都会出现如下消息:

Collecting package metadata (repodata.json): / DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/repodata.json HTTP/1.1" 304 0
- DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /conda-forge/osx-64/repodata.json HTTP/1.1" 200 None
\ DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/osx-64/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/osx-64/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /conda-forge/noarch/repodata.json HTTP/1.1" 200 None

例如:

创建一个名为“env3”的环境:

conda create -n env3 -vv

出现:

DEBUG conda.gateways.logging:set_verbosity(218): verbosity set to 2
DEBUG conda.core.solve:solve_final_state(297): solving prefix /home/nayelilv/anaconda3/envs/env3
  specs_to_remove: frozenset()
  specs_to_add: frozenset()
  prune: Null
Collecting package metadata (repodata.json): ...working... DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __archspec
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __osx
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __unix
done
Solving environment: ...working... DEBUG conda.resolve:get_reduced_index(673): Retrieving packages for: 
DEBUG conda.core.solve:_add_specs(823): specs_map with targets: {'__archspec': MatchSpec("__archspec"), '__osx': MatchSpec("__osx"), '__unix': MatchSpec("__unix")}
DEBUG conda.resolve:get_reduced_index(673): Retrieving packages for: 
  - __archspec
  - __osx
  - __unix
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __unix
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __osx
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __archspec
DEBUG conda.common._logic:_run_sat(613): Invoking SAT with clause count: 2
DEBUG conda.resolve:_get_sat_solver_cls(79): Using SAT solver interface 'pycosat'.
DEBUG conda.resolve:gen_clauses(1061): gen_clauses returning with clause count: 9
DEBUG conda.resolve:generate_spec_constraints(1069): generate_spec_constraints returning with clause count: 9
DEBUG conda.common._logic:_run_sat(613): Invoking SAT with clause count: 12
DEBUG conda.resolve:bad_installed(1282): Checking if the current environment is consistent
DEBUG conda.core.solve:_find_inconsistent_packages(646): inconsistent precs: None
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __unix
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __osx
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __archspec
DEBUG conda.resolve:gen_clauses(1061): gen_clauses returning with clause count: 9
DEBUG conda.resolve:generate_spec_constraints(1069): generate_spec_constraints returning with clause count: 9
DEBUG conda.common._logic:_run_sat(613): Invoking SAT with clause count: 12
DEBUG conda.core.solve:_run_sat(1042): final specs to add: 
  - __archspec
  - __osx
  - __unix
DEBUG conda.resolve:solve(1439): Solving for: 
  - 0: __osx target=None optional=False
  - 1: __archspec target=None optional=False
  - 2: __unix target=None optional=False
DEBUG conda.resolve:solve(1445): Solve: Getting reduced index of compliant packages
DEBUG conda.resolve:solve(1477): Solve: determining satisfiability
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __unix
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __osx
DEBUG conda.resolve:__init__(132): restricting to unmanageable packages: __archspec
DEBUG conda.resolve:gen_clauses(1061): gen_clauses returning with clause count: 9
DEBUG conda.resolve:generate_spec_constraints(1069): generate_spec_constraints returning with clause count: 9
DEBUG conda.common._logic:_run_sat(613): Invoking SAT with clause count: 12
DEBUG conda.resolve:solve(1531): Requested specs: 
  - __archspec
  - __osx
  - __unix
DEBUG conda.resolve:solve(1532): Optional specs: 
DEBUG conda.resolve:solve(1533): All other specs: 
DEBUG conda.resolve:solve(1534): missing specs: 
DEBUG conda.resolve:solve(1537): Solve: minimize removed packages
DEBUG conda.resolve:solve(1544): Solve: maximize versions of requested packages
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1550): Initial package channel/version metric: 0/0
DEBUG conda.resolve:solve(1553): Solve: minimize track_feature count
DEBUG conda.resolve:generate_feature_count(1081): generate_feature_count returning with clause count: 12
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1556): Track feature count: 0
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1567): Package misfeature count: 0
DEBUG conda.resolve:solve(1570): Solve: maximize build numbers of requested packages
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1572): Initial package build metric: 0
DEBUG conda.resolve:solve(1575): Solve: prefer arch over noarch for requested packages
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1577): Noarch metric: 0
DEBUG conda.resolve:solve(1581): Solve: minimize number of optional installations
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1584): Optional package install metric: 0
DEBUG conda.resolve:solve(1587): Solve: minimize number of necessary upgrades
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1590): Dependency update count: 0
DEBUG conda.resolve:solve(1593): Solve: maximize versions and builds of indirect dependencies.  Prefer arch over noarch where equivalent.
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1602): Additional package channel/version/build/noarch metrics: 0/0/0/0
DEBUG conda.resolve:solve(1611): Solve: prune unnecessary packages
DEBUG conda.common._logic:minimize(673): Empty objective, trivial solution
DEBUG conda.resolve:solve(1614): Weak dependency count: 0
DEBUG conda.resolve:solve(1622): Looking for alternate solutions
done
DEBUG conda.core.solve:solve_final_state(423): solved prefix /home/nayelilv/anaconda3/envs/env3
  solved_linked_dists:
    

DEBUG conda.core.prefix_data:_load_single_record(190): loading prefix record /home/nayelilv/anaconda3/conda-meta/jsonschema-4.17.3-py311h06a4308_0.json
DEBUG conda.core.prefix_data:_load_single_record(190): loading prefix record /home/nayelilv/anaconda3/conda-meta/libssh2-1.10.0-h37d81fd_2.json
DEBUG conda.core.prefix_data:_load_single_record(190): loading prefix record /home/nayelilv/anaconda3/conda-meta/param-1.13.0-py311h06a4308_0.json
DEBUG conda.core.prefix_data:_load_single_record(190): loading prefix record /home/nayelilv/anaconda3/conda-meta/bokeh-3.2.1-py311h92b7b1e_0.json 
DEBUG conda.core.prefix_data:_load_single_record(190): loading prefix record /home/nayelilv/anaconda3/conda-meta/jupyter_console-6.6.3-py311h06a4308_0.json
DEBUG conda.core.prefix_data:_load_single_record(190): loading prefix record /home/nayelilv/anaconda3/conda-meta/pycparser-2.21-pyhd3eb1b0_0.json
...

INFO conda.core.link:__init__(210): initializing UnlinkLinkTransaction with
  target_prefix: /home/nayelilv/anaconda3/envs/env3
  unlink_precs:
    
  link_precs:
    

DEBUG conda.core.package_cache_data:__init__(717): instantiating ProgressiveFetchExtract with

要安装来自 的软件包conda,该消息会再次出现并且被冻结:

conda install -c conda-forge mamba

再次:

Collecting package metadata (repodata.json): ...working... DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/osx-64/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/osx-64/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/repodata.json HTTP/1.1" 304 0
done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed  

我已经尝试过:

  • 卸载并重新安装Anaconda,conda的版本是23.7.2.
  • 有几篇类似问题的帖子,例如:这个这个这个这个没有人为我工作。

我使用的是 Ubuntu 23.04。提前致谢。


解决方案


暂无回答



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:https://www.pythonheidong.com/blog/article/2012079/e1c2cb5062793723109a/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

18 0
收藏该文
已收藏

评论内容:(最多支持255个字符)