質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
dlib

dlibは、機械学習のC++の画像処理ライブラリの一つ。性能の高い顔の器官検出が簡単にでき、Pythonバインドもあります。オープンソースで無料で使用でき、機械学習以外の様々な機能も搭載されています。

Anaconda

Anacondaは、Python本体とPythonで利用されるライブラリを一括でインストールできるパッケージです。環境構築が容易になるため、Python開発者間ではよく利用されており、商用目的としても利用できます。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

1回答

6804閲覧

Python anaconda dlibのインストールができない

yuchikawa

総合スコア0

dlib

dlibは、機械学習のC++の画像処理ライブラリの一つ。性能の高い顔の器官検出が簡単にでき、Pythonバインドもあります。オープンソースで無料で使用でき、機械学習以外の様々な機能も搭載されています。

Anaconda

Anacondaは、Python本体とPythonで利用されるライブラリを一括でインストールできるパッケージです。環境構築が容易になるため、Python開発者間ではよく利用されており、商用目的としても利用できます。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2021/03/13 14:11

前提・実現したいこと

Pythonで画像処理をするためにdlibをインストールがしようとしたところ
以下のようなエラーが出てしまい、先に進めない状態です。
(書籍の課題に取り組み中であり、そこでdlibを指定されている)

発生している問題・エラーメッセージ

Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: - Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: Specifications: - dlib -> python[version='2.7.*|3.5.*|3.6.*|3.4.*'] Your python: python=3.8 If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.

該当のソースコード

Python

1conda install -c menpo dlib

試したこと

以下を実施後、再度上記コマンドを実行しましたが、エラー解消されませんでした。

・Anacondaのインストールとアップデート
参考URL:https://qiita.com/jordi/items/cd974b668e7ecf312543
以前、openCVのインストール時にも同じエラーが発生し、その際はこのやり方で解消したためトライした。
・仮想環境を作成しPythonのバージョンを3.6にする

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

python[version='2.7.|3.5.|3.6.|3.4.']
は、対応するpythonのバージョンが3.4~3.6であるといっています。

新しい仮想環境を作って、そこに入れましょう。

$ conda create -n py36 python=3.6
$ conda activate py36
$ conda install dlib

でできます。

その他のanacondaのライブラリも全部入れたいならば、

$ conda create -n py36 python=3.6 anaconda
$ conda activate py36
$ conda install dlib

です。

これでも同じ問題が起きるようなら、そのエラーメッセージを載せてください。

投稿2021/03/13 14:39

編集2021/03/13 14:56
ppaul

総合スコア24666

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

yuchikawa

2021/03/14 00:45 編集

ppaulさん エラー内容の説明までありがとございます。 後者(ライブラリも全部入れたいならば)の方のコマンドを実行したところ、以下のメッセージが表示されました。 ************************* Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - dlib Current channels: - https://repo.anaconda.com/pkgs/main/osx-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/osx-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. ************************* また、指定されたサイトで確認し、チャンネルをつけて再実行しましたが、以下のようにエラーとなりました。 $ conda install -c menpo dlib ************************* Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: | Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed UnsatisfiableError: The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versions
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問