Not able to install Anaconda

Hi,

I’m not able to install Anaconda … tried to uninstall and install several times but nothing is working.
please suggest solution.

(base) C:\Users\sahil>conda remove anaconda-navigator
Collecting package metadata (repodata.json): failed
WARNING conda.exceptions:print_unexpected_error_report(1216): KeyError(‘pkgs_dirs’)
Traceback (most recent call last):
File “D:\Anaconda\lib\site-packages\conda\exceptions.py”, line 1082, in call
return func(*args, **kwargs)
File “D:\Anaconda\lib\site-packages\conda\cli\main.py”, line 87, in _main
exit_code = do_call(args, p)
File “D:\Anaconda\lib\site-packages\conda\cli\conda_argparse.py”, line 84, in do_call
return getattr(module, func_name)(args, parser)
File “D:\Anaconda\lib\site-packages\conda\cli\main_remove.py”, line 90, in execute
txn = solver.solve_for_transaction()
File “D:\Anaconda\lib\site-packages\conda\core\solve.py”, line 152, in solve_for_transaction
unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
File “D:\Anaconda\lib\site-packages\conda\core\solve.py”, line 195, in solve_for_diff
final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
File “D:\Anaconda\lib\site-packages\conda\core\solve.py”, line 300, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File “D:\Anaconda\lib\site-packages\conda\common\io.py”, line 88, in decorated
return f(*args, **kwds)
File “D:\Anaconda\lib\site-packages\conda\core\solve.py”, line 463, in _collect_all_metadata
index, r = self._prepare(prepared_specs)
File “D:\Anaconda\lib\site-packages\conda\core\solve.py”, line 1058, in _prepare
reduced_index = get_reduced_index(self.prefix, self.channels,
File “D:\Anaconda\lib\site-packages\conda\core\index.py”, line 288, in get_reduced_index
new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
File “D:\Anaconda\lib\site-packages\conda\core\subdir_data.py”, line 118, in query_all
create_cache_dir()
File “D:\Anaconda\lib\site-packages\conda\core\subdir_data.py”, line 876, in create_cache_dir
cache_dir = join(PackageCacheData.first_writable().pkgs_dir, ‘cache’)
File “D:\Anaconda\lib\site-packages\conda\core\package_cache_data.py”, line 151, in first_writable
pkgs_dirs = context.pkgs_dirs
File “D:\Anaconda\lib\site-packages\conda\base\context.py”, line 530, in pkgs_dirs
fixed_dirs += user_data_dir(APP_NAME, APP_NAME),
File “D:\Anaconda\lib\site-packages\conda_vendor\appdirs.py”, line 67, in user_data_dir
path = os.path.join(_get_win_folder(const), appauthor, appname)
File “D:\Anaconda\lib\site-packages\conda_vendor\appdirs.py”, line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: The specified procedure could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “D:\Anaconda\lib\site-packages\conda\exceptions.py”, line 1214, in print_unexpected_error_report
message_builder.append(get_main_info_str(error_report[‘conda_info’]))
File “D:\Anaconda\lib\site-packages\conda\cli\main_info.py”, line 237, in get_main_info_str
info_dict[‘_’ + key] = (‘\n’ + 26 * ’ ').join(info_dict[key])
KeyError: ‘pkgs_dirs’

dear sahil_arora

Try removing Anaconda according to how to remove the application in windows.

Basically, the Windows version of Anaconda is an installation process defined by Microsoft.
Therefore, unlike DOS etc., it will be uninstalled as an application package.

And if you install a new one, if you go through the normal uninstall process of Windows, no registry error will occur.

Regards, you.
ktsh.tanaka.2020

Hi, Thanks for the reply but I tried to remove like apps on windows and installed it back still it is still not working.

Thanks,
Sahil Arora

1 Like

dear sahil_arora

There are several possible causes. For Windows, the registry is written after installation. If the registry remains, it may not work, even if the installation seems successful. In such cases, cleaning the existing registry with software such as CCleaner (eg CCleaner https://www.ccleaner.com/) may work.

Regards, you.
ktsh.tanaka.2020

Thank you @ktsh.tanaka.2020 for the support !!

I found out there was some python system path was missing which was causing problem.

1 Like

Please assist I can not install Anaconda Distribution getting a message that the package is not complete, contact the software developer.

1 Like