微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

“conda update --all”由于文件丢失而失败

如何解决“conda update --all”由于文件丢失而失败

当我尝试使用 conda update --all 更新我的所有包时,该命令似乎能够成功收集所有包,但随后发生此错误(对冗长的复制粘贴表示歉意):

Preparing transaction: done
Verifying transaction: done
Executing transaction: | menuinst Exception
Traceback (most recent call last):
  File "C:\Users\<username>\Anaconda3\lib\site-packages\conda\gateways\disk\create.py",line 246,in make_menu
    menuinst.install(join(prefix,win_path_ok(file_path)),remove,prefix)
  File "C:\Users\<username>\Anaconda3\lib\site-packages\menuinst\__init__.py",line 76,in install
    _install(path,prefix,mode='user')
  File "C:\Users\<username>\Anaconda3\lib\site-packages\menuinst\__init__.py",line 33,in _install
    data = json.load(open(path))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\<username>\\Anaconda3\\Menu\\spyder_shortcut.json'menuinst Exception
Traceback (most recent call last):
  File "C:\Users\<username>\Anaconda3\lib\site-packages\conda\gateways\disk\create.py",in _install
    data = json.load(open(path))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\<username>\\Anaconda3\\Menu\\notebook.json'menuinst Exception
Traceback (most recent call last):
  File "C:\Users\<username>\Anaconda3\lib\site-packages\conda\gateways\disk\create.py",in _install
    data = json.load(open(path))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\<username>\\Anaconda3\\Menu\\notebook.json'DEBUG menuinst_win32:__init__(198): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',prefix: 'C:\Users\<username>\Anaconda3',env_name: 'None',mode: 'user',used_mode: 'user'
DEBUG menuinst_win32:create(323): Shortcut cmd is C:\Users\<username>\Anaconda3\pythonw.exe,args are ['C:\\Users\\<username>\\Anaconda3\\cwp.py','C:\\Users\\<username>\\Anaconda3','C:\\Users\\<username>\\Anaconda3\\pythonw.exe','C:\\Users\\<username>\\Anaconda3\\Scripts\\anaconda-navigator-script.py']
DEBUG menuinst_win32:__init__(198): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}','C:\\Users\\<username>\\Anaconda3\\Scripts\\anaconda-navigator-script.py']
\ WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename C:\Users\<username>\Anaconda3\Library\resources\icudtl.dat.  Please remove this file manually (you may need to reboot to free file handles)
done
ERROR conda.core.link:_execute(699): An error occurred while installing package 'conda-forge::qt-5.12.9-h5909a2a_4'.
Rolling back transaction: |

我在网上搜索过,但找不到任何解决方案。我认为这与命令 conda update pythonconda update spyder 失败的原因有关。

我也尝试以管理员身份运行它,但没有帮助

我该如何解决这个问题?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。