【问题标题】:pipenv install jupyterlab => "dependencies could not be resolved"pipenv install jupyterlab =>“无法解决依赖关系”
【发布时间】:2022-01-06 15:17:21
【问题描述】:

我对以下问题的正确补救措施感到困惑:

从一个原始的 pipenv 开始(没有 Pipfile 或 Pipfile.lock):

$ py -m pipenv --python 3
Successfully created virtual environment!
Created a Pipfile for this project...
$ py -m pipenv install jupyterlab
Installation Succeeded
Resolving dependencies...
[    ] Locking Failed!
...
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: Disabling PEP 517 processing is invalid: project does not have a setup.py

由于这是全新安装,有哪些依赖项无法解决?

我接受了建议尝试pipenv install --skip-lock,然后是pipenv graph,但在(巨大的)图表中没有看到任何明显的问题。还是真正的问题是缺少setup.py?

无论如何,正确的补救措施是什么?

【问题讨论】:

    标签: python-3.x pipenv


    【解决方案1】:

    根本原因是 Windows 下缺少 Rust 编译器。所以治疗:

    1. 确保您已安装 Microsoft Studio(和 C++ 构建工具)
    2. 确保已安装 Rust。
    3. 重试py -m pipenv install jupyter 命令。 花了一段时间,但这对我有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-02-16
      • 2017-02-20
      • 2021-06-22
      相关资源
      最近更新 更多