anaconda3创建环境失败问题
问题描述
在anaconda3环境下创建新的python3环境,但总是会出现以下错误,请大神们寻求帮助????
(base) yz@yz-PC:~$ conda create --name python3 python=3.7
Solving environment: failed
WARNING conda.exceptions:print_unexpected_error_report(949): KeyError('pkgs_dirs')
Traceback (most recent call last):
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/gateways/connection/session.py", line 50, 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/yz/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/cli/main_create.py", line 11, in execute
install(args, parser, 'create')
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 235, in install
force_reinstall=context.force,
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 518, in solve_for_transaction
force_remove, force_reinstall)
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 451, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File "/home/yz/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 180, in solve_final_state