这个问题是由`jupyter notebook`给出的错误提示:`macOS上的“无法打开静态文件”
之后conda update jupyter
,jupyter --version
给出jupyter-notebook : 6.0.0
但是在https://github.com/jupyter/notebook上,单击“Branch: master -> tags
我看到一个6.0.1
标签”。
如何升级到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拥有它,因此您可以使用它
conda install -c conda-forge notebook
但是,请注意,不能保证Conda Forge和Anaconda软件包之间的兼容性。最佳实践是创建一个新的环境,从一开始就优先考虑Conda Forge:
conda create -n my_jupyter_env -c conda-forge jupyter
通常,将base env弄乱不是一个好主意,并且如果您想要默认安装的Anaconda以外的其他东西,我建议从Miniconda开始,不要再使用base(偶尔使用conda upgrade conda
)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句