!pip install skater
Collecting skater
Downloading skater-1.1.2.tar.gz (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.7/96.7 kB 1.0 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: scikit-learn>=0.18 in /usr/local/lib/python3.10/dist-packages (from skater) (1.2.2)
Collecting scikit-image==0.14 (from skater)
Downloading scikit-image-0.14.0.tar.gz (27.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 27.0/27.0 MB 17.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.10/dist-packages (from skater) (2.0.3)
INFO: pip is looking at multiple versions of skater to determine which version is compatible with other requirements. This could take a while.
Collecting skater
Downloading skater-1.1.0.tar.gz (52 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.5/52.5 kB 1.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Downloading skater-1.0.4.tar.gz (41 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.4/41.4 kB 687.0 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Downloading skater-1.0.2.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Downloading skater-1.0.1.tar.gz (36 kB)
Preparing metadata (setup.py) ... done
ERROR: Cannot install skater==1.0.1, skater==1.0.2, skater==1.0.4, skater==1.1.0 and skater==1.1.2 because these package versions have conflicting dependencies.
The conflict is caused by:
skater 1.1.2 depends on ds-lime>=0.1.1.21
skater 1.1.0 depends on ds-lime>=0.1.1.21
skater 1.0.4 depends on ds-lime>=0.1.1.21
skater 1.0.2 depends on ds-lime>=0.1.1.21
skater 1.0.1 depends on ds-lime>=0.1.1.21
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible:for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
我尝试在 python Google Colab 中安装滑冰者包,但我收到上述两个错误,请帮助我到处搜索都没有得到任何解决方案,我也访问了提到的链接,但无法理解如何解决这个问题
skater
需要模块ds-lime
但似乎ds-lime
不再存在。
我在 Kaggle 上找到了 教程,它使用
skater
安装 ds-lime
(和 conda
)。我在 conda 中找到了 ds-lime ,看起来最后一个版本是 5 年前创建的。看起来原始模块是由DataScience.com
创建的,但它的页面不存在,它的GitHub也不存在。也许此页面已被其他页面或公司收购,并且他们删除了所有数据。看来您可能必须使用 conda
才能使用它。
其他想法:
conda
有ds-lime
作为文件tar.bz2,你可以下载它,解压它,你可以尝试将site-packages
中的文件手动放入带有python模块的文件夹中。
我将文件夹
ds_lime-0.1.1.27-py2.7.egg-info
和 lime
移动到本地 Linux 上的 /usr/lib/python3.10
,稍后 install skater
开始工作。 (但我对其他模块有问题 - wordcloud
,所以我可以检查是否skater
)