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

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

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

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Python 3.x

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

Python

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

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

解決済

1回答

823閲覧

dl8.5のインストールについて

munemasa

総合スコア3

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Python 3.x

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

Python

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

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

0クリップ

投稿2022/11/04 09:36

編集2022/11/04 21:33

pythonのパッケージdl8.5をインストールしたいです

現在,pythonにdl8.5のパッケージをインストールしようとしているのですが,エラーが出てうまくいきません.
dl8.5は決定木を作成するパッケージで,こちら(https://pypi.org/project/dl8.5/#description)に説明などが書かれています.

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

Collecting dl8.5 Using cached dl8.5-0.0.15.tar.gz (38 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: setuptools in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from dl8.5) (47.1.0) Requirement already satisfied: cython in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from dl8.5) (0.29.32) Requirement already satisfied: numpy in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from dl8.5) (1.23.4) Requirement already satisfied: scikit-learn in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from dl8.5) (1.1.3) Requirement already satisfied: scipy>=1.3.2 in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn->dl8.5) (1.9.3) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn->dl8.5) (3.1.0) Requirement already satisfied: joblib>=1.0.0 in c:\users\masat\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn->dl8.5) (1.2.0) Installing collected packages: dl8.5 DEPRECATION: dl8.5 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for dl8.5 ... error error: subprocess-exited-with-error × Running setup.py install for dl8.5 did not run successfully. │ exit code: 1 ╰─> [55 lines of output] Warning: Multiple cython sources found for extension 'dl85Optimizer': ['wrapping/src/headers/error_function.pyx', 'wrapping/dl85Optimizer.pyx'] See http://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html for sharing declarations among Cython files. running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\dl85 copying dl85\_version.py -> build\lib.win-amd64-3.8\dl85 copying dl85\__init__.py -> build\lib.win-amd64-3.8\dl85 creating build\lib.win-amd64-3.8\dl85\errors copying dl85\errors\errors.py -> build\lib.win-amd64-3.8\dl85\errors copying dl85\errors\__init__.py -> build\lib.win-amd64-3.8\dl85\errors creating build\lib.win-amd64-3.8\dl85\predictors copying dl85\predictors\predictor.py -> build\lib.win-amd64-3.8\dl85\predictors copying dl85\predictors\__init__.py -> build\lib.win-amd64-3.8\dl85\predictors creating build\lib.win-amd64-3.8\dl85\supervised copying dl85\supervised\__init__.py -> build\lib.win-amd64-3.8\dl85\supervised creating build\lib.win-amd64-3.8\dl85\unsupervised copying dl85\unsupervised\clustering.py -> build\lib.win-amd64-3.8\dl85\unsupervised copying dl85\unsupervised\__init__.py -> build\lib.win-amd64-3.8\dl85\unsupervised creating build\lib.win-amd64-3.8\dl85\supervised\classifiers copying dl85\supervised\classifiers\classifier.py -> build\lib.win-amd64-3.8\dl85\supervised\classifiers copying dl85\supervised\classifiers\old_classifier.py -> build\lib.win-amd64-3.8\dl85\supervised\classifiers copying dl85\supervised\classifiers\__init__.py -> build\lib.win-amd64-3.8\dl85\supervised\classifiers creating build\lib.win-amd64-3.8\dl85\supervised\classifiers\tests copying dl85\supervised\classifiers\tests\test_DL85Classifier.py -> build\lib.win-amd64-3.8\dl85\supervised\classifiers\tests copying dl85\supervised\classifiers\tests\__init__.py -> build\lib.win-amd64-3.8\dl85\supervised\classifiers\tests running build_ext building 'dl85Optimizer' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\wrapping creating build\temp.win-amd64-3.8\Release\wrapping\src creating build\temp.win-amd64-3.8\Release\wrapping\src\headers creating build\temp.win-amd64-3.8\Release\wrapping\src\codes C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iwrapping/src/headers -IC:\Users\masat\AppData\Local\Programs\Python\Python38\include -IC:\Users\masat\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /EHsc /Tpwrapping/src/headers/error_function.cpp /Fobuild\temp.win-amd64-3.8\Release\wrapping/src/headers/error_function.obj -std=c++11 -DCYTHON_PEP489_MULTI_PHASE_INIT=0 cl : コマンド ライン warning D9002 : 不明なオプション '-std=c++11' を無視します。 error_function.cpp C:\Users\masat\AppData\Local\Temp\pip-install-porjflts\dl8-5_0e87468bd43d4d42904c89e749f2b53b\wrapping\src\headers\rCover.h(67): warning C4267: '=': 'size_t' から 'int' に変換しました。データが失われているかもしれません。 C:\Users\masat\AppData\Local\Temp\pip-install-porjflts\dl8-5_0e87468bd43d4d42904c89e749f2b53b\wrapping\src\headers\rCover.h(78): warning C4267: '=': 'size_t' から 'int' に変換しました。データが失われているかもしれません。 C:\Users\masat\AppData\Local\Temp\pip-install-porjflts\dl8-5_0e87468bd43d4d42904c89e749f2b53b\wrapping\src\headers\rCover.h(90): warning C4244: 'return': 'double' から 'int' への変換です。データが失われる可能性があります。 wrapping/src/headers/error_function.cpp(1363): error C2526: 'call_python_error_function': C のリンケージ関数は C++ のクラス 'std::vector<float,std::allocator<float>>' を戻せません。 wrapping/src/headers/error_function.cpp(1363): note: 'std::vector<float,std::allocator<float>>' の宣言を確認し てください wrapping/src/headers/error_function.cpp(1364): error C2526: 'call_python_fast_error_function': C のリンケージ関数は C++ のクラス 'std::vector<float,std::allocator<float>>' を戻せません。 wrapping/src/headers/error_function.cpp(1363): note: 'std::vector<float,std::allocator<float>>' の宣言を確認し てください wrapping/src/headers/error_function.cpp(2048): error C2556: 'std::vector<float,std::allocator<float>> call_python_error_function(PyObject *,RCover *)': オーバーロード関数は、'void call_python_error_function(PyObject *,RCover *)' と戻り値の型のみが異なります。 wrapping/src/headers/error_function.cpp(1363): note: 'call_python_error_function' の宣言を確認してください wrapping/src/headers/error_function.cpp(2048): error C2371: 'call_python_error_function': 再定義されています。 異なる基本型です。 wrapping/src/headers/error_function.cpp(1363): note: 'call_python_error_function' の宣言を確認してください wrapping/src/headers/error_function.cpp(2121): error C2556: 'std::vector<float,std::allocator<float>> call_python_fast_error_function(PyObject *,RCover *)': オーバーロード関数は、'void call_python_fast_error_function(PyObject *,RCover *)' と戻り値の型のみが異なります。 wrapping/src/headers/error_function.cpp(1364): note: 'call_python_fast_error_function' の宣言を確認してください wrapping/src/headers/error_function.cpp(2121): error C2371: 'call_python_fast_error_function': 再定義されています。異なる基本型です。 wrapping/src/headers/error_function.cpp(1364): note: 'call_python_fast_error_function' の宣言を確認してください error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> dl8.5 note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

該当のソースコード

>py -3.8 -m pip install dl8.5

試したこと

もともとはpython3.10.5でやろうとしていたのですが,そちらでもうまくいかず,バージョンの問題を疑ったため,パッケージが出た当時のpython3.8を使用しています.

補足情報

使用している環境は以下のとおりです.
windows10
python 3.8.5

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

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

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

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

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

guest

回答1

0

ベストアンサー

https://pypi.org/project/dl8.5/

Windows is not yet supported.

と書いてあります。

投稿2022/11/04 10:46

quickquip

総合スコア11029

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

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

munemasa

2022/11/04 12:33

ありがとうございます! 完全に失念してました. 試しにlinux端末でインストールしたら無事に実行できました. 本当に助かりました.ありがとうございます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問