Conda无法创建环境或安装包问题求助
Conda在Ubuntu 23.04下创建环境/安装包异常求助
系统环境
- 操作系统:Ubuntu 23.04
- Conda版本:23.7.2
异常场景1:创建空环境无进展
执行命令:
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 ... 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
异常场景2:安装mamba失败
执行命令:
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
- 参考多个社区相关问题的解决方案,但均未生效
内容的提问来源于stack exchange,提问作者geomicrobio
相关产品推荐
相关产品推荐

