teratail初質問です。また、Python等についても初学者のため
おかしな質問をしているかもしれません。予めご了承ください。
前提・実現したいこと
Windowsの中のUbuntu環境でScikit-Learn Tutorialの仮想環境を構築をしたい。
発生している問題・エラーメッセージ
Scikit-Learn Tutorial内の「Installation Notes」のコマンドを実行すると
$ conda create -n skl_tut python=3.4.5 ipywidgets=5.2.2 numpy scipy matplotlib scikit-learn ipython-notebook seaborn pillow Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - python=3.4.5 - ipywidgets=5.2.2 - ipython-notebook Current channels: - https://repo.anaconda.com/pkgs/main/linux-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/linux-64 - https://repo.anaconda.com/pkgs/r/noarch To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page.
###エラー文で検索してみると
-c conda-forgeオプションを付けると解決するとあったので
$ conda create -n skl_tut -c conda-forge python=3.4.5 ipywidgets=5.2.2 numpy scipy matplotlib scikit-learn ipython-notebook seaborn pillow Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - ipython-notebook Current channels: - https://conda.anaconda.org/conda-forge/linux-64 - https://conda.anaconda.org/conda-forge/noarch - https://repo.anaconda.com/pkgs/main/linux-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/linux-64 - https://repo.anaconda.com/pkgs/r/noarch To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page.
###ipython-notebookで検索してみると
jupyterと同じとあったので、ipython-notebookをjupyterに変更して
$ conda create -n skl_tut -c conda-forge python=3.4.5 ipywidgets=5.2.2 numpy scipy matplotlib scikit-learn jupyter seaborn pillow Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. Examining conflict for jupyter pillow matplotlib numpy scikit-learn sciExamining conflict for pillow matplotlib numpy scikit-learn scipy: : 15Examining conflict for pillow matplotlib numpy scikit-learn scipy: : 16Examining conflict for ipywidgets matplotlib: : 16it [01:49, 6.67s/it]Examining conflict for scikit-learn scipy numpy: : 17it [01:51, 7.32s/Examining conflict for scikit-learn scipy numpy: : 18it [01:51, 5.63s/Examining conflict for scipy numpy: : 18it [02:07, 5.63s/it] failed UnsatisfiableError: The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versions これ以降は以下のような記述の繰り返し Package tornado conflicts for: seaborn -> matplotlib-base[version='>=2.1.2'] -> tornado matplotlib -> tornado jupyter -> ipykernel -> tornado[version='>=4|>=4,<6|>=4.0|>=4.2|>=6.1|>=5.0|>=5.0,<7|>=4.1,<7'] ipywidgets=5.2.2 -> ipykernel[version='>=4.2.2'] -> tornado[version='>=4.0|>=4.2']
完了したのか?と思い
$ conda info -e
を実行するも仮想環境は構築されていませんでした。
補足情報(FW/ツールのバージョンなど)
環境
・Windows [10]
・Ubuntu [20.04]
・conda [4.10.1]
・Python [3.8.8]
・ipython [7.22.0]
・jupyter [1.0.0]
・jupyter core [4.7.1]
・jupyter-notebook [6.3.0]
・scikit-learn [0.24.1]
・matplot [3.3.4]
・IPython [7.2.2]
・NumPy [1.19.2]
・SciPy [1.6.2]
・seaborn [0.11.1]
なぜこうなるのか、原因すらわかりません。
初心者質問で恐縮ですが、ご回答宜しくお願い致します。
回答2件
あなたの回答
tips
プレビュー