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

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

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

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

Python 3.x

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

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

0回答

4569閲覧

dlibがインストールできない cmakeはインストール済なのに CMake must be installed to build the following extensions: dlib

退会済みユーザー

退会済みユーザー

総合スコア0

dlib

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

Python 3.x

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

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2019/08/24 12:54

#環境
windows10
python3.6
cmake 3.14.4

#ためしたこと

pip install dlib --user

以下エラーでインストールできませんでした。
そこで本家からファイルdlib-19.17.0をダウンロードして
ディレクトリを移動し

python setup.py install --user

をしましたが以下のようなエラーが出て動きません。
今回仮想環境アナコンダはいれません。以下エラーになります。

C:\Users\hogehoge\Desktop\dlib-19.17.0>python setup.py install --user running install running bdist_egg running egg_info writing dlib.egg-info\PKG-INFO writing dependency_links to dlib.egg-info\dependency_links.txt writing top-level names to dlib.egg-info\top_level.txt package init file 'dlib\__init__.py' not found (or not a regular file) reading manifest file 'dlib.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'dlib.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext Traceback (most recent call last): File "setup.py", line 120, in get_cmake_version out = subprocess.check_output(['cmake', '--version']) File "C:\Program Files\Python36\lib\subprocess.py", line 356, in check_output **kwargs).stdout File "C:\Program Files\Python36\lib\subprocess.py", line 423, in run with Popen(*popenargs, **kwargs) as process: File "C:\Program Files\Python36\lib\subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "C:\Program Files\Python36\lib\subprocess.py", line 1017, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "setup.py", line 261, in <module> 'Topic :: Software Development', File "C:\Program Files\Python36\lib\site-packages\setuptools\__init__.py", line 143, in setup return distutils.core.setup(**attrs) File "C:\Program Files\Python36\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Program Files\Python36\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "C:\Program Files\Python36\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "C:\Program Files\Python36\lib\site-packages\setuptools\command\install.py", line 67, in run self.do_egg_install() File "C:\Program Files\Python36\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install self.run_command('bdist_egg') File "C:\Program Files\Python36\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "C:\Program Files\Python36\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "C:\Program Files\Python36\lib\site-packages\setuptools\command\bdist_egg.py", line 172, in run cmd = self.call_command('install_lib', warn_dir=0) File "C:\Program Files\Python36\lib\site-packages\setuptools\command\bdist_egg.py", line 158, in call_command self.run_command(cmdname) File "C:\Program Files\Python36\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "C:\Program Files\Python36\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "C:\Program Files\Python36\lib\site-packages\setuptools\command\install_lib.py", line 11, in run self.build() File "C:\Program Files\Python36\lib\distutils\command\install_lib.py", line 107, in build self.run_command('build_ext') File "C:\Program Files\Python36\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "C:\Program Files\Python36\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "setup.py", line 129, in run cmake_version = self.get_cmake_version() File "setup.py", line 125, in get_cmake_version "\n*******************************************************************\n") RuntimeError: ******************************************************************* CMake must be installed to build the following extensions: dlib *******************************************************************

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

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

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

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

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

meg_

2019/08/24 13:34

C++ compiler は何ですか?
bsk

2019/08/27 11:02

cmakeは環境ヘンスのパス通っていますでしょうか。
退会済みユーザー

退会済みユーザー

2019/08/27 11:16

ご連絡ありがとうございます。確認してみます。cmake環境変数が必要なんですね。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

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

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

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問