统信配环境,系统自带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