0

我在 Google Colaboratory 中安装 scikit-survival 时遇到问题。每次都说:

pip install scikit-survival
Collecting scikit-survival
  Using cached https://files.pythonhosted.org/packages/91/f0/047ce90bb831ab34ca287d1d23f0c61b6546cd89494566898c0e17516990/scikit-survival-0.15.0.post0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpncdknf_f Check the logs for full command output.

但是,我没有得到错误。我已经安装了最新的 Python 版本,并且任何其他 pip install 命令都可以使用。有人有想法吗?

亲切的问候,哈希利亚马

4

1 回答 1

2

该错误与不同的版本控制以及与之相关的内容有关。在 Colab 中尝试以下操作。

!pip install --upgrade pip
!pip uninstall --yes --quiet osqp
!pip install -U scikit-survival

这应该可以完成这项工作。

于 2021-05-04T09:18:42.740 回答