python - conda创建环境py3.7,只安装jupyter,但发现冲突

标签 python python-3.x jupyter-notebook anaconda conda

当我创建这样的新环境时: conda create -n nb python=3.7 jupyter ,它失败了。

控制台告诉我:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.-
Examining jupyter: 100%|████████████████████████████████████████████████failed

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

Output in format: Requested package -> Available versions

Package python conflicts for:
python=3.7
jupyter -> python[version='2.7.*|3.4.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.8,<3.9.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
jupyter -> ipywidgets -> python[version='>=3.5']

所以我去基础环境检查已安装的软件包的版本。 (基)D:\>conda 列表

python版本是3.7.4,jupyter是1.0.0。所以我又试了一次。 conda create -n nb python=3.7.3 jupyter=1.0.0

但是,它仍然无法工作。我很困惑。为什么??

这是conda 信息

     active environment : base
    active env location : C:\ProgramData\Anaconda3
            shell level : 1
       user config file : C:\Users\Administrator\.condarc
 populated config files : C:\Users\Administrator\.condarc
          conda version : 4.8.2
    conda-build version : 3.18.9
         python version : 3.7.4.final.0
       virtual packages :
       base environment : C:\ProgramData\Anaconda3  (writable)
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\Administrator\.conda\pkgs
                          C:\Users\Administrator\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Anaconda3\envs
                          C:\Users\Administrator\.conda\envs
                          C:\Users\Administrator\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362
          administrator : True
             netrc file : None
           offline mode : False

我用谷歌搜索了一下,但似乎没有人遇到像我这样的问题。为什么这种事偏偏发生在我身上。

拜托,我需要一些帮助。

最佳答案

感谢@merv,在他的帮助下我定位到问题出在清华Anaconda Mirror上。我已经向他们报告了此事。他们在 MacOS 中使用 CONDA_SUBDIR="win-64" 命令重现了这一点。

问题页面: https://github.com/tuna/issues/issues/701

关于python - conda创建环境py3.7,只安装jupyter,但发现冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60080886/

相关文章:

python - Tornado 在 OSX 上失败但在 Ubuntu 上工作

python - 如何为 DataFrame 中的每一行聚合来自 ID 匹配的其他 N 个 DataFrame(在特定列上)的数据

jupyter-notebook - 如何在 google Colab 上关闭和停止 jupyter notebook

python-3.x - Qlik on MacOS 中的 Python 集成

python - 在 IPython 模式下更改 Emacs “send code to interpreter” C-c C-r 命令

python - Sendgrid Python reply_to 电子邮件

python - 多单元 LSTM RNN 返回 nan 训练误差

Pygame 鼠标事件中的 Python 时间计数器

python-3.x - 替换 xarray 中的零值

css - Jupyter 重新加载 custom.css?