[软件设计/软件工程] 更新到 Spyder 4.0.0 时出错

[复制链接]
发表于 2022-5-6 15:49:03
问题
我在 Windows 10、64 位下。

我曾尝试使用 Anaconda prompt 和 Anaconda Navigator 多次更新 Spyder 4.0.0。

它失败。我卸载了 Anaconda 并重新安装了它。

然后我以管理员身份运行 Anaconda 提示符并执行:

康达更新间谍

Spyder 的版本是 3.3.6。

我试过这个命令:

conda install spyder=4.0.0

提示返回:
  1. Collecting package metadata (current_repodata.json): done
  2. Solving environment: failed with initial frozen solve. Retrying with flexible solve.
  3. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
  4. Collecting package metadata (repodata.json): done
  5. Solving environment: failed with initial frozen solve. Retrying with flexible solve.
  6. Solving environment: |
  7. Found conflicts! Looking for incompatible packages.
  8. This can take several minutes.  Press CTRL-C to abort.
  9. Finding conflicts:   0%|                                                                       | 0/360 [00:00<?, ?it/s]|Examining hpack:  42%|█████████████████████████▌                                   | 151/360 [00:00<00:00, 1468.80it/s]/Examining jupyter_core:  56%|██████████████████████████████▍                       | 203/360 [00:00<00:00, 1468.80it/-
  10. - mparing specs that have this dependency:   0%|                                                | 0/20 [00:00<?, ?it/\
  11. Examining jupyter_core:  57%|██████████████████████████████▌                       | 204/360 [00:20<00:00, 1468.80it/s]|| mparing specs that have this dependency:  10%|████                                    | 2/20 [00:18<02:47,  9.32s/i/ |
  12. Comparing specs that have this dependency:  55%|█████████████████████▍                 | 11/20 [01:07<00:55,  6.16s/i-
  13. Examining tbb:  73%|███████████████████████████████████████████████▎                 | 262/360 [02:35<01:19,  1.24it/s]-Examining jedi:  81%|███████████████████████████████████████████████████▉            | 292/360 [02:35<00:54,  1.24it/- \
  14. Examining jupyter_client:  90%|████████████████████████████████████████████████▍     | 323/360 [06:03<04:23,  7.12s/i\ \
  15. Comparing specs that have this dependency:   7%|██▋                                     | 1/15 [00:10<02:27, 10.51s/i-
  16. Comparing specs that have this dependency:  13%|█████▎                                  | 2/15 [00:21<02:19, 10.73s/i/ |
  17. Comparing specs that have this dependency:  27%|██████████▋                             | 4/15 [00:31<01:25,  7.77s/i\ \
  18. Finding conflict paths:   0%|                                                                    | 0/7 [00:00<?, ?it// -
  19. Comparing specs that have this dependency:  73%|████████████████████████████▌          | 11/15 [01:21<00:29,  7.40s/i\ |
  20. Finding shortest conflict path for jupyter_client[version='>=4.2']:  67%|██████████▋     | 4/6 [00:10<00:01,  1.35it/| -
  21. Comparing specs that have this dependency:  80%|███████████████████████████████▏       | 12/15 [01:34<00:23,  7.91s/i- |
  22. failed                                                                                                                 /
  23.                                                                                                                        \
  24. UnsatisfiableError: The following specifications were found to be incompatible with a past
  25. explicit spec that is not an explicit spec in this operation (spyder):

  26.   - spyder=4.0.0

  27. The following specifications were found to be incompatible with each other:



  28. Package jedi conflicts for:
  29. spyder=4.0.0 -> python-language-server[version='>=0.31.2,<0.32.0'] -> jedi[version='>=0.14.1,<0.16']
  30. jedi
  31. jupyterlab_server -> notebook -> ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  32. anaconda==2019.10 -> jedi==0.15.1[build='py37_0|py36_0|py27_0']
  33. ipython -> jedi[version='>=0.10']
  34. qtconsole -> ipykernel[version='>=4.1'] -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  35. _ipyw_jlab_nb_ext_conf -> ipywidgets -> ipython[version='>=4.0.0'] -> jedi[version='>=0.10']
  36. jupyter_console -> ipython -> jedi[version='>=0.10']
  37. spyder-kernels -> ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  38. widgetsnbextension -> notebook[version='>=4.4.1'] -> ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  39. jupyterlab -> notebook[version='>=4.3.1'] -> ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  40. jupyter -> ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  41. spyder=4.0.0 -> qtconsole[version='>=4.6.0'] -> ipykernel[version='>=4.1'] -> ipython[version='>=5.0'] -> jedi[version='>=0.10']
  42. ipywidgets -> ipython[version='>=4.0.0'] -> jedi[version='>=0.10']
  43. notebook -> ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  44. ipykernel -> ipython[version='>=4.0'] -> jedi[version='>=0.10']
  45. anaconda==2019.10 -> spyder==3.3.6=py27_0 -> jedi[version='>=0.10|>=0.9']
  46. spyder=4.0.0 -> jedi=0.14.1
  47. Package jupyter_client conflicts for:
  48. _ipyw_jlab_nb_ext_conf -> jupyterlab -> notebook[version='>=4.3.1'] -> nbconvert -> jupyter_client[version='>=4.2']
  49. widgetsnbextension -> notebook[version='>=4.4.1'] -> nbconvert -> jupyter_client[version='>=4.2']
  50. jupyterlab -> notebook[version='>=4.3.1'] -> nbconvert -> jupyter_client[version='>=4.2']
  51. ipywidgets -> widgetsnbextension[version='>=3.3.0,<3.4.0'] -> notebook[version='>=4.4.1'] -> jupyter_client[version='>=5.2.0|>=5.3.1|>=5.3.4']
  52. jupyterlab_server -> notebook -> jupyter_client[version='>=5.2.0|>=5.3.1|>=5.3.4']
  53. anaconda==2019.10 -> ipykernel==4.10.0=py27_0 -> jupyter_client[version='>=4.1|>=5.2.0|>=5.2.3|>=5.3.1']
  54. jupyter -> ipykernel -> jupyter_client[version='>=4.1|>=4.2|>=5.2.0|>=5.3.1|>=5.3.4']
  55. ipywidgets -> widgetsnbextension[version='>=3.3.0,<3.4.0'] -> notebook[version='>=4.4.1'] -> nbconvert -> jupyter_client[version='>=4.2']
  56. spyder=4.0.0 -> qtconsole[version='>=4.6.0'] -> ipykernel[version='>=4.1'] -> jupyter_client
  57. jupyterlab -> notebook[version='>=4.3.1'] -> jupyter_client[version='>=5.2.0|>=5.3.1|>=5.3.4']
  58. spyder=4.0.0 -> nbconvert -> jupyter_client[version='>=4.1|>=4.2|>=5.3.4']
  59. ipywidgets -> ipykernel[version='>=4.5.1'] -> jupyter_client
  60. anaconda==2019.10 -> jupyter_client==5.3.3[build='py27_1|py36_1|py37_1']
  61. spyder-kernels -> ipykernel -> jupyter_client
  62. jupyter_console -> jupyter_client
  63. spyder-kernels -> jupyter_client[version='>=5.2.3|>=5.3.4']
  64. notebook -> nbconvert -> jupyter_client[version='>=4.2']
  65. jupyter_client
  66. notebook -> jupyter_client[version='>=5.2.0|>=5.3.1|>=5.3.4']
  67. nbconvert -> jupyter_client[version='>=4.2']
  68. _ipyw_jlab_nb_ext_conf -> ipywidgets -> ipykernel[version='>=4.5.1'] -> jupyter_client[version='>=5.2.0|>=5.3.1|>=5.3.4']
  69. jupyterlab_server -> notebook -> nbconvert -> jupyter_client[version='>=4.2']
  70. widgetsnbextension -> notebook[version='>=4.4.1'] -> jupyter_client[version='>=5.2.0|>=5.3.1|>=5.3.4']
  71. ipykernel -> jupyter_client
  72. qtconsole -> ipykernel[version='>=4.1'] -> jupyter_client
  73. qtconsole -> jupyter_client[version='>=4.1']
  74. Package jupyter_core conflicts for:
  75. anaconda==2019.10 -> jupyter_core==4.5.0=py_0
  76. spyder=4.0.0 -> nbconvert -> jupyter_client[version='>=4.2'] -> jupyter_core[version='>=4.6.0']
  77. nbconvert -> jupyter_client[version='>=4.2'] -> jupyter_core[version='>=4.6.0']
  78. jupyterlab -> notebook[version='>=4.3.1'] -> jupyter_core[version='>=4.4.0|>=4.6.0']
  79. ipywidgets -> ipykernel[version='>=4.5.1'] -> jupyter_client -> jupyter_core[version='>=4.4.0|>=4.6.0']
  80. anaconda-project -> anaconda-client -> nbformat[version='>=4.4.0'] -> jupyter_core
  81. jupyter_core
  82. anaconda-navigator -> anaconda-client[version='>=1.6'] -> nbformat[version='>=4.4.0'] -> jupyter_core
  83. jupyter -> notebook -> jupyter_core[version='>=4.4.0|>=4.6.0']
  84. _ipyw_jlab_nb_ext_conf -> jupyterlab -> notebook[version='>=4.3.1'] -> jupyter_core[version='>=4.4.0|>=4.6.0']
  85. spyder-kernels -> jupyter_client[version='>=5.2.3'] -> jupyter_core[version='>=4.6.0']
  86. widgetsnbextension -> notebook[version='>=4.4.1'] -> jupyter_core[version='>=4.4.0|>=4.6.0']
  87. notebook -> jupyter_core[version='>=4.4.0|>=4.6.0']
  88. ipywidgets -> nbformat[version='>=4.2.0'] -> jupyter_core
  89. anaconda-client -> nbformat[version='>=4.4.0'] -> jupyter_core
  90. nbformat -> jupyter_core
  91. jupyter_console -> jupyter_client -> jupyter_core[version='>=4.6.0']
  92. anaconda==2019.10 -> jupyter_client==5.3.3=py27_1 -> jupyter_core[version='>=4.4.0']
  93. qtconsole -> jupyter_core
  94. ipykernel -> jupyter_client -> jupyter_core[version='>=4.6.0']
  95. spyder=4.0.0 -> nbconvert -> jupyter_core
  96. jupyter_client -> jupyter_core[version='>=4.6.0']
  97. nbconvert -> jupyter_core
  98. jupyterlab_server -> notebook -> jupyter_core[version='>=4.4.0|>=4.6.0']
  99. qtconsole -> jupyter_client[version='>=4.1'] -> jupyter_core[version='>=4.6.0']
  100. Package spyder-kernels conflicts for:
  101. spyder=4.0.0 -> spyder-kernels[version='>=1.8.1,<2.0.0']
  102. spyder-kernels
  103. anaconda==2019.10 -> spyder-kernels==0.5.2[build='py37_0|py36_0|py27_0']
  104. anaconda==2019.10 -> spyder==3.3.6=py27_0 -> spyder-kernels[version='>=0.5.0,<1']
  105. Package qtconsole conflicts for:
  106. anaconda==2019.10 -> qtconsole==4.5.5=py_0
  107. jupyter -> qtconsole
  108. anaconda==2019.10 -> jupyter==1.0.0=py27_7 -> qtconsole[version='>=4.2']
  109. spyder=4.0.0 -> qtconsole[version='>=4.6.0']
  110. qtconsole
复制代码

启动 Anaconda Navigator 时,Spyder 版本仍然是 3.3.6 版本。

为了使以前版本的 Spyder 受益,我缺少什么?

编辑1:

当我尝试使用 anaconda navigator 时,它说:

它建议安装其他环境,但我希望 Spyder 被更新而不是安装在其他地方。

编辑2:

我成功将 conda 更改为 4.6,但出现以下两个错误:

FileNotFoundError: [Errno 2] 没有这样的文件或目录:'C:\\Users\\brichard\\AppData\\Local\\Continuum\\anaconda3\\Menu\\spyder_shortcut.jsodone

也:
  1. CondaError: Cannot link a source that does not exist. C:\Users\brichard\AppData\Local\Continuum\anaconda3\Scripts\conda.exe
  2. Running `conda clean --packages` may resolve your problem.
复制代码

conda clean --packages 命令没有帮助,因为执行后会引发相同的错误。

回答
(这里是 Spyder 维护者)其他用户反映需要运行

康达更新蟒蛇

然后

conda 安装 spyder=4

成功更新到版本 4。





上一篇:Docker 填满 macOS 上的存储空间
下一篇:Linux用户模式下退出init的正确方法

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表