升级python后conda安装报错

统信配环境,系统自带Python版本是3.7,装了个3.11以后用conda装环境出现报错

报错提示

准备用conda创建一个虚拟环境,结果出现了大篇幅报错

(base) uos@uos-PC:~$ conda create -n torch python=3.11
Collecting package metadata (current_repodata.json): failed
WARNING conda.exceptions:print_unexpected_error_report(1254): KeyError('pkgs_dirs')
Traceback (most recent call last):
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/gateways/connection/session.py", line 57, in __call__
    return cls._thread_local.session
AttributeError: '_thread._local' object has no attribute 'session'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/exceptions.py", line 1132, in __call__
    return func(*args, **kwargs)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/cli/main.py", line 69, in main_subshell
    exit_code = do_call(args, p)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/cli/conda_argparse.py", line 122, in do_call
    return getattr(module, func_name)(args, parser)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/notices/core.py", line 121, in wrapper
    return func(*args, **kwargs)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/cli/main_create.py", line 41, in execute
    install(args, parser, 'create')
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/cli/install.py", line 264, in install
    unlink_link_transaction = solver.solve_for_transaction(
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/solve.py", line 134, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/solve.py", line 177, in solve_for_diff
    final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/solve.py", line 282, in solve_final_state
    ssc = self._collect_all_metadata(ssc)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/common/io.py", line 84, in decorated
    return f(*args, **kwds)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/solve.py", line 449, in _collect_all_metadata
    index, r = self._prepare(prepared_specs)
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/solve.py", line 1064, in _prepare
    reduced_index = get_reduced_index(self.prefix, self.channels,
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/index.py", line 267, in get_reduced_index
    new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
  File "/home/uos/miniforge-pypy3/lib/pypy3.9/site-packages/conda/core/subdir_data.py", line 169, in query_all
    result = tuple(chain.from_iterabl
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值