更新到 Spyder 4.0.0 时出错
问题我在 Windows 10、64 位下。
我曾尝试使用 Anaconda prompt 和 Anaconda Navigator 多次更新 Spyder 4.0.0。
它失败。我卸载了 Anaconda 并重新安装了它。
然后我以管理员身份运行 Anaconda 提示符并执行:
康达更新间谍
Spyder 的版本是 3.3.6。
我试过这个命令:
conda install spyder=4.0.0
提示返回:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.Press CTRL-C to abort.
Finding conflicts: 0%| | 0/360 |Examining hpack:42%|█████████████████████████▌ | 151/360 /Examining jupyter_core:56%|██████████████████████████████▍ | 203/360 [00:00<00:00, 1468.80it/-
- mparing specs that have this dependency: 0%| | 0/20 [00:00<?, ?it/\
Examining jupyter_core:57%|██████████████████████████████▌ | 204/360 || mparing specs that have this dependency:10%|████ | 2/20 [00:18<02:47,9.32s/i/ |
Comparing specs that have this dependency:55%|█████████████████████▍ | 11/20 [01:07<00:55,6.16s/i-
Examining tbb:73%|███████████████████████████████████████████████▎ | 262/360 -Examining jedi:81%|███████████████████████████████████████████████████▉ | 292/360 [02:35<00:54,1.24it/- \
Examining jupyter_client:90%|████████████████████████████████████████████████▍ | 323/360 [06:03<04:23,7.12s/i\ \
Comparing specs that have this dependency: 7%|██▋ | 1/15 [00:10<02:27, 10.51s/i-
Comparing specs that have this dependency:13%|█████▎ | 2/15 [00:21<02:19, 10.73s/i/ |
Comparing specs that have this dependency:27%|██████████▋ | 4/15 [00:31<01:25,7.77s/i\ \
Finding conflict paths: 0%| | 0/7 [00:00<?, ?it// -
Comparing specs that have this dependency:73%|████████████████████████████▌ | 11/15 [01:21<00:29,7.40s/i\ |
Finding shortest conflict path for jupyter_client:67%|██████████▋ | 4/6 [00:10<00:01,1.35it/| -
Comparing specs that have this dependency:80%|███████████████████████████████▏ | 12/15 [01:34<00:23,7.91s/i- |
failed /
\
UnsatisfiableError: The following specifications were found to be incompatible with a past
explicit spec that is not an explicit spec in this operation (spyder):
- spyder=4.0.0
The following specifications were found to be incompatible with each other:
Package jedi conflicts for:
spyder=4.0.0 -> python-language-server -> jedi
jedi
jupyterlab_server -> notebook -> ipykernel -> ipython -> jedi
anaconda==2019.10 -> jedi==0.15.1
ipython -> jedi
qtconsole -> ipykernel -> ipython -> jedi
_ipyw_jlab_nb_ext_conf -> ipywidgets -> ipython -> jedi
jupyter_console -> ipython -> jedi
spyder-kernels -> ipykernel -> ipython -> jedi
widgetsnbextension -> notebook -> ipykernel -> ipython -> jedi
jupyterlab -> notebook -> ipykernel -> ipython -> jedi
jupyter -> ipykernel -> ipython -> jedi
spyder=4.0.0 -> qtconsole -> ipykernel -> ipython -> jedi
ipywidgets -> ipython -> jedi
notebook -> ipykernel -> ipython -> jedi
ipykernel -> ipython -> jedi
anaconda==2019.10 -> spyder==3.3.6=py27_0 -> jedi
spyder=4.0.0 -> jedi=0.14.1
Package jupyter_client conflicts for:
_ipyw_jlab_nb_ext_conf -> jupyterlab -> notebook -> nbconvert -> jupyter_client
widgetsnbextension -> notebook -> nbconvert -> jupyter_client
jupyterlab -> notebook -> nbconvert -> jupyter_client
ipywidgets -> widgetsnbextension -> notebook -> jupyter_client
jupyterlab_server -> notebook -> jupyter_client
anaconda==2019.10 -> ipykernel==4.10.0=py27_0 -> jupyter_client
jupyter -> ipykernel -> jupyter_client
ipywidgets -> widgetsnbextension -> notebook -> nbconvert -> jupyter_client
spyder=4.0.0 -> qtconsole -> ipykernel -> jupyter_client
jupyterlab -> notebook -> jupyter_client
spyder=4.0.0 -> nbconvert -> jupyter_client
ipywidgets -> ipykernel -> jupyter_client
anaconda==2019.10 -> jupyter_client==5.3.3
spyder-kernels -> ipykernel -> jupyter_client
jupyter_console -> jupyter_client
spyder-kernels -> jupyter_client
notebook -> nbconvert -> jupyter_client
jupyter_client
notebook -> jupyter_client
nbconvert -> jupyter_client
_ipyw_jlab_nb_ext_conf -> ipywidgets -> ipykernel -> jupyter_client
jupyterlab_server -> notebook -> nbconvert -> jupyter_client
widgetsnbextension -> notebook -> jupyter_client
ipykernel -> jupyter_client
qtconsole -> ipykernel -> jupyter_client
qtconsole -> jupyter_client
Package jupyter_core conflicts for:
anaconda==2019.10 -> jupyter_core==4.5.0=py_0
spyder=4.0.0 -> nbconvert -> jupyter_client -> jupyter_core
nbconvert -> jupyter_client -> jupyter_core
jupyterlab -> notebook -> jupyter_core
ipywidgets -> ipykernel -> jupyter_client -> jupyter_core
anaconda-project -> anaconda-client -> nbformat -> jupyter_core
jupyter_core
anaconda-navigator -> anaconda-client -> nbformat -> jupyter_core
jupyter -> notebook -> jupyter_core
_ipyw_jlab_nb_ext_conf -> jupyterlab -> notebook -> jupyter_core
spyder-kernels -> jupyter_client -> jupyter_core
widgetsnbextension -> notebook -> jupyter_core
notebook -> jupyter_core
ipywidgets -> nbformat -> jupyter_core
anaconda-client -> nbformat -> jupyter_core
nbformat -> jupyter_core
jupyter_console -> jupyter_client -> jupyter_core
anaconda==2019.10 -> jupyter_client==5.3.3=py27_1 -> jupyter_core
qtconsole -> jupyter_core
ipykernel -> jupyter_client -> jupyter_core
spyder=4.0.0 -> nbconvert -> jupyter_core
jupyter_client -> jupyter_core
nbconvert -> jupyter_core
jupyterlab_server -> notebook -> jupyter_core
qtconsole -> jupyter_client -> jupyter_core
Package spyder-kernels conflicts for:
spyder=4.0.0 -> spyder-kernels
spyder-kernels
anaconda==2019.10 -> spyder-kernels==0.5.2
anaconda==2019.10 -> spyder==3.3.6=py27_0 -> spyder-kernels
Package qtconsole conflicts for:
anaconda==2019.10 -> qtconsole==4.5.5=py_0
jupyter -> qtconsole
anaconda==2019.10 -> jupyter==1.0.0=py27_7 -> qtconsole
spyder=4.0.0 -> qtconsole
qtconsole
启动 Anaconda Navigator 时,Spyder 版本仍然是 3.3.6 版本。
为了使以前版本的 Spyder 受益,我缺少什么?
编辑1:
当我尝试使用 anaconda navigator 时,它说:
它建议安装其他环境,但我希望 Spyder 被更新而不是安装在其他地方。
编辑2:
我成功将 conda 更改为 4.6,但出现以下两个错误:
FileNotFoundError: 没有这样的文件或目录:'C:\\Users\\brichard\\AppData\\Local\\Continuum\\anaconda3\\Menu\\spyder_shortcut.jsodone
也:
CondaError: Cannot link a source that does not exist. C:\Users\brichard\AppData\Local\Continuum\anaconda3\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
conda clean --packages 命令没有帮助,因为执行后会引发相同的错误。
回答
(这里是 Spyder 维护者)其他用户反映需要运行
康达更新蟒蛇
然后
conda 安装 spyder=4
成功更新到版本 4。
页:
[1]