Akira Tanaka
Akira Tanaka
## chapter5のpoetry install でエラーが発生しています。 ### エラーの詳細 windows 10のwsl2上のUbuntu20.04でChapter5のpoetry installを実行したところ、 下記のエラーが発生し先に進めません。対処方法がわかれば教えて下さい。 ``` ~/oreilly/RecommenderSystems/chapter5$ poetry install Installing dependencies from lock file Could not parse version constraint: [internal] load build definition from Dockerfile...
### 課題 * 私のWindows環境ではpoetryを使って実行させることができませんでした。 ### 対策 * pyproject.tomlに定義された依存パッケージの情報をもとに、venvで環境構築できるようrequirements.txtを作成しました。 * なお、xlearnをインストールするには、Windows10環境ではcmakeおよび、Microsoft Visual C++ Build Toolが必要です。また、wsl2のUbuntu20.04環境では`sudo apt install cmake`を事前に実行しておく必要があります。 * chapter5/Readme.mdにvenvでの実行手順を追記しました。 ### 動作確認結果 * Windows10のpython 3.7.8でjupyter notebookが起動し、Association.ipynbが動作すること、同じ結果が算出できることを確認しました。 * Windows10のwsl2上のubuntu20.04でも、python 3.7.8でjupyter notebookが起動し、Association.ipynbが動作すること、同じ結果が算出できることを確認しました。