anaconda打不开的解决方法
报错内容
Navigator Error An unexpected error occurred on Navigator start-up Report Please report this issue in the anaconda issue tracker Main Error 'bytes' object has no attribute 'get' Traceback Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler return_value = func(*args, **kwargs) File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 151, in start_app window = run_app(splash) File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 65, in run_app window = MainWindow(splash=splash, tab_project=False) File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 170, in __init__ self.api = AnacondaAPI() File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 1600, in AnacondaAPI ANACONDA_API = _AnacondaAPI() File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 78, in __init__ self._conda_api = CondaAPI() File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 1923, in CondaAPI CONDA_API = _CondaAPI() File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 376, in __init__ self.set_conda_prefix(info=get_conda_info()) File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 540, in set_conda_prefix self.ROOT_PREFIX = info.get('root_prefix') AttributeError: 'bytes' object has no attribute 'get'
问题原因:
.condarc文件配置有误
解决方案:
编辑.condarc文件,修改为如下内容
channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - defaults show_channel_urls: true