问题详情
点击
出现Anaconda-Navigator启动后闪退的现象。
或者
装过一次anaconda,貌似按了一个更新的键就打不开了。navigator这个打不开,会停留在图标然后闪退。其余的都可以打开。
File "C:\Program Files\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 355, in process_application_info
packages, apps = output
TypeError: 'NoneType' object is not iterable
用cmd打开navigator,会出现以上问题。找到了所说的文件,可是不知道要改什么。
下面是提示错误的地方:
def process_application_info(self, worker, output, error):"""Create application projects."""if error:logger.error(str(error))packages, apps = outputprocessed_apps = self.api.process_apps(apps)
解决方法(不推荐)
在安装好anaconda navigator 后,点击打开anaconda navigator 会出现闪退现象,即出现下图就闪退。解决方案是:
打开你电脑的终端,在Anaconda Prompt中输入:
解决方法(推荐)
第一步:使用管理员运行:conda prompt
第二步:执行命令 conda update anaconda-navigator
(C:\Anaconda3) C:\Users\lenovo> conda update anaconda-navigator Fetching package metadata ......... Solving package specifications: ..........Package plan for installation in environment C:\Anaconda3:The following packages will be downloaded:package | build---------------------------|-----------------vc-14 | 0 703 Bchardet-3.0.4 | py35_0 202 KBqtpy-1.3.1 | py35_0 41 KBrequests-2.14.2 | py35_0 705 KBanaconda-client-1.6.3 | py35_0 184 KBanaconda-project-0.6.0 | py35_0 223 KBpyopenssl-16.2.0 | py35_0 70 KBanaconda-navigator-1.6.4 | py35_0 3.9 MBconda-4.3.30 | py35hec795fb_0 541 KB------------------------------------------------------------Total: 5.8 MBThe following NEW packages will be INSTALLED:anaconda-project: 0.6.0-py35_0chardet: 3.0.4-py35_0conda-env: 2.6.0-0vc: 14-0The following packages will be UPDATED:anaconda-client: 1.5.1-py35_0 --> 1.6.3-py35_0anaconda-navigator: 1.3.1-py35_0 --> 1.6.4-py35_0conda: 4.2.9-py35_0 --> 4.3.30-py35hec795fb_0pyopenssl: 16.0.0-py35_0 --> 16.2.0-py35_0qtpy: 1.1.2-py35_0 --> 1.3.1-py35_0requests: 2.11.1-py35_0 --> 2.14.2-py35_0
Proceed ([y]/n)? y
Fetching packages ...
vc-14-0.tar.bz 100% |###############################| Time: 0:00:00 350.65 kB/s
chardet-3.0.4- 100% |###############################| Time: 0:00:00 275.41 kB/s
qtpy-1.3.1-py3 100% |###############################| Time: 0:00:00 103.41 kB/s
requests-2.14. 100% |###############################| Time: 0:00:01 563.00 kB/s
anaconda-clien 100% |###############################| Time: 0:00:00 257.49 kB/s
anaconda-proje 100% |###############################| Time: 0:00:00 246.00 kB/s
pyopenssl-16.2 100% |###############################| Time: 0:00:00 175.56 kB/s
anaconda-navig 100% |###############################| Time: 0:00:07 510.25 kB/s
conda-4.3.30-p 100% |###############################| Time: 0:00:01 459.78 kB/s
Extracting packages ...
[ COMPLETE ]|##################################################| 100%
Unlinking packages ...
INFO menuinst_win32:__init__(182): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Anaconda3', env_name: 'None', mode: 'None', used_mode: 'user'
[ COMPLETE ]|##################################################| 100%
Linking packages ...
INFO menuinst_win32:__init__(182): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Anaconda3', env_name: 'None', mode: 'None', used_mode: 'user'
[ COMPLETE ]|##################################################| 100%
(C:\Anaconda3) C:\Users\lenovo>
第三步:执行anaconda-navigator --reset
(C:\Anaconda3) C:\Users\lenovo>anaconda-navigator --resetAnaconda Navigator configuration reset...Anaconda Navigator configuration reset successful!(C:\Anaconda3) C:\Users\lenovo>
第四步:执行conda update anaconda-client
(C:\Anaconda3) C:\Users\lenovo>conda update anaconda-client Fetching package metadata ............. Solving package specifications: .Package plan for installation in environment C:\Anaconda3:The following packages will be UPDATED:anaconda-client: 1.6.3-py35_0 --> 1.6.6-py35h690133a_0conda: 4.3.30-py35hec795fb_0 --> 4.3.31-py35_0conda-env: 2.6.0-0 --> 2.6.0-h36134e3_1Proceed ([y]/n)? yconda-env-2.6. 100% |###############################| Time: 0:00:00 316.26 kB/s anaconda-clien 100% |###############################| Time: 0:00:00 251.02 kB/s conda-4.3.31-p 100% |###############################| Time: 0:00:01 473.96 kB/s(C:\Anaconda3) C:\Users\lenovo>
第五步:执行conda update -f anaconda-client
(C:\Anaconda3) C:\Users\lenovo>conda update -f anaconda-client Fetching package metadata ............. Solving package specifications: .Package plan for installation in environment C:\Anaconda3:The following NEW packages will be INSTALLED:anaconda-client: 1.6.6-py35h690133a_0Proceed ([y]/n)? y(C:\Anaconda3) C:\Users\lenovo>