学无先后,达者为师

网站首页 编程语言 正文

anaconda打开闪退的解决过程_python

作者:Wsyoneself   更新时间: 2022-11-16 编程语言

anaconda打开闪退:(过程中可能需要输入y确认)

1.管理员权限运行anaconda prompt

2.升级conda:

conda update anaconda-navigator

3.重置navigator: 

anaconda-navigator --reset

4.升级客户端:

conda update anaconda-client

5.升级安装依赖包:

conda update -f anaconda-client

6.再尝试打开anaconda

7.如果上方出现更新较慢,可以添加镜像源,加快速度:

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

8.查看是否添加上源了:

conda config --show(看channels属性下是否有上方添加的两个镜像了)

9.如果镜像失效,删除镜像:

conda config --remove channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/

补充:anaconda打开出现黑框随后闪退

在cmd中输入Anaconda-Navigator发现报错

qtpy.PythonQtError: No Qt bindings could be found

随后寻找到如下安装方案:

1.保证你电脑上有原装的python,就是从官网下的那个原版python

Run “pip install pyqt5-tools” from cmd.

2.在命令行窗口(cmd)输入pip install pyqt5-tools

You should have a message on screen post-installation - “Successfully installed click-7.0 pyqt5-5.13.0 pyqt5-tools-5.13.0.1.5 python-dotenv-0.10.3” 3.如果安装成功,会提示"Successfully installed click-7.0 pyqt5-5.13.0 pyqt5-tools-5.13.0.1.5 python-dotenv-0.10.3"的字样,反正只要没报错就行。

总结

原文链接:https://blog.csdn.net/weixin_45647721/article/details/126062397

栏目分类
最近更新