当我尝试安装软件包或创建虚拟环境时,出现以下错误: 我该如何解决? 重新安装Python或格式化计算机时,会发生相同的错误。
ValueError: invalid literal for int() with base 10: b'\x00\x00\x00\x00'
Solving environment: ...working... failed
Traceback (most recent call last):
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
exit_code = do_call(args, p)
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 11, in execute
install(args, parser, 'create')
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\cli\install.py", line 235, in install
force_reinstall=context.force,
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction
force_remove, force_reinstall)
File "C:\Users\Jin\Anaconda3\lib\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 "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state
index, r = self._prepare(prepared_specs)
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\solve.py", line 592, in _prepare
self.subdirs, prepared_specs)
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
new_records = query_all(spec)
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
return tuple(concat(future.result() for future in as_completed(futures)))
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 95, in query
self.load()
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 149, in load
_internal_state = self._load()
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 227, in _load
mod_etag_headers.get('_mod'))
File "C:\Users\Jin\Anaconda3\lib\site-packages\conda\core\subdir_data.py", line 437, in fetch_repodata_remote_request
timeout=timeout)
File "C:\Users\Jin\Anaconda3\lib\site-packages\requests\sessions.py",
ValueError: invalid literal for int() with base 10: b'\x00\x00\x00\x00'