如何强制`conda`安装`jupyter`的最新版本? [英] How to force `conda` to install the latest version of `jupyter`?

查看:407
本文介绍了如何强制`conda`安装`jupyter`的最新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题由`jupyter提出笔记本出现错误:在MacOS上无法打开静态文件""

conda update jupyter之后,jupyter --version给出jupyter-notebook : 6.0.0

但是在 https://github.com/jupyter/notebook 上,单击Branch: master -> tags看到6.0.1标签.

However on https://github.com/jupyter/notebook, clicking Branch: master -> tags I see a 6.0.1 tag.

如何升级到6.0.1?

> conda install jupyter=6.0.1
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - jupyter=6.0.1

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

https://anaconda.org

这是死胡同吗?

推荐答案

首先,请注意,要升级/安装的实际软件包是notebook,而不是jupyter. Anaconda频道尚未发布该版本的notebook. Conda Forge拥有,因此您可以通过

First, note that the actual package you want to upgrade/install is notebook, not jupyter. The Anaconda channel hasn't released that version of notebook yet. Conda Forge has it, so you can get it with

conda install -c conda-forge notebook

但是,请注意,不能保证Conda Forge和Anaconda软件包之间的兼容性.最佳做法是创建一个新的环境,从一开始就优先考虑Conda Forge:

However, just be aware that compatibility between Conda Forge and Anaconda package builds is not guaranteed. Best practice is to create a new env that prioritizes Conda Forge from the start:

conda create -n my_jupyter_env -c conda-forge jupyter

通常,最好不要使用 base env,并且,如果您想要安装默认的Anaconda以外的其他工具,我建议从Miniconda开始,并保留 base 单独(偶尔出现的conda upgrade conda除外).

Generally it isn't a good idea to mess with base env, and if you want something other than a default Anaconda install, I recommend starting with Miniconda and leaving base alone (other than the occasional conda upgrade conda).

这篇关于如何强制`conda`安装`jupyter`的最新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆