Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ml_metricsのinstallに失敗する #83

Open
habroptilus opened this issue Jul 14, 2022 · 0 comments
Open

ml_metricsのinstallに失敗する #83

habroptilus opened this issue Jul 14, 2022 · 0 comments

Comments

@habroptilus
Copy link
Owner

poetry installするとml_metricsのinstallで失敗する。

setuptoolsのversionが58以上だと失敗するらしい。

pfnet-research/xfeat#9

pyproject.tomlのパッケージバージョン指定を57.0.0にしたが、変わらず失敗する。

poetry のバージョンが1.2以上だとsetuptoolsのバージョンも指定できるようになるらしい。

python-poetry/poetry#4511

1.2は現状pre releaseなので、stableになったらpoetryのバージョンをあげることで解決できそう。

それまではreadmeにも書いたが、poetry run pip install -U "setuptools<58"をして無理やりsetuptoolsをダウングレードしてからml_metricsをいれるという方法でどうにか回避する。

$ poetry run pip install -U "setuptools<58"
Collecting setuptools<58
  Using cached setuptools-57.5.0-py3-none-any.whl (819 kB)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 58.1.0
    Uninstalling setuptools-58.1.0:
      Successfully uninstalled setuptools-58.1.0
Successfully installed setuptools-57.5.0

58.1.0が勝手に入ってしまっているのを57.5.0にダウングレードしている図

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant