実現したいこと
py-featをダウンロードしたい
発生している問題・分からないこと
py-feetがダウンロードできない
エラーメッセージ
error
1PS C:\Users\2121093\AppData\Local\Programs\Python\Python312> pip install py-feat 2Defaulting to user installation because normal site-packages is not writeable 3Collecting py-feat 4 Using cached py_feat-0.6.2-py2.py3-none-any.whl.metadata (1.3 kB) 5Requirement already satisfied: pandas>=1.0 in c:\users\2121093\appdata\local\packages\pythonsoftwarefoundation.python.3.13_qbz5n2kfra8p0\localcache\local-packages\python313\site-packages (from py-feat) (2.2.3) 6Requirement already satisfied: numpy>=1.9 in c:\users\2121093\appdata\local\packages\pythonsoftwarefoundation.python.3.13_qbz5n2kfra8p0\localcache\local-packages\python313\site-packages (from py-feat) (2.2.0) 7Collecting seaborn>=0.7.0 (from py-feat) 8 Using cached seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB) 9Collecting matplotlib>=2.1 (from py-feat) 10 Using cached matplotlib-3.10.0-cp313-cp313-win_amd64.whl.metadata (11 kB) 11Collecting nltools>=0.5.1 (from py-feat) 12 Using cached nltools-0.5.1-py2.py3-none-any.whl.metadata (1.3 kB) 13Collecting numexpr<2.8.5 (from py-feat) 14 Using cached numexpr-2.8.4.tar.gz (98 kB) 15 Installing build dependencies ... done 16 Getting requirements to build wheel ... done 17 Preparing metadata (pyproject.toml) ... done 18Collecting scikit-learn>=1.2 (from py-feat) 19 Using cached scikit_learn-1.6.0-cp313-cp313-win_amd64.whl.metadata (15 kB) 20Collecting pywavelets>=0.3.0 (from py-feat) 21 Using cached pywavelets-1.8.0-cp313-cp313-win_amd64.whl.metadata (9.0 kB) 22Collecting h5py>=2.7.0 (from py-feat) 23 Using cached h5py-3.12.1-cp313-cp313-win_amd64.whl.metadata (2.5 kB) 24Collecting Pillow>=6.0.0 (from py-feat) 25 Using cached pillow-11.0.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB) 26INFO: pip is looking at multiple versions of py-feat to determine which version is compatible with other requirements. This could take a while. 27Collecting py-feat 28 Using cached py_feat-0.6.1-py2.py3-none-any.whl.metadata (1.2 kB) 29 Using cached py_feat-0.6.0-py2.py3-none-any.whl.metadata (1.2 kB) 30 Using cached py_feat-0.5.1-py2.py3-none-any.whl.metadata (1.2 kB) 31 Using cached py_feat-0.5.0-py2.py3-none-any.whl.metadata (1.2 kB) 32 Using cached py_feat-0.4.0-py2.py3-none-any.whl.metadata (1.2 kB) 33Collecting opencv-contrib-python>=4.4.0.46 (from py-feat) 34 Using cached opencv_contrib_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB) 35Collecting py-feat 36 Using cached py-feat-0.3.7.tar.gz (6.0 MB) 37 Installing build dependencies ... done 38 Getting requirements to build wheel ... done 39 Preparing metadata (pyproject.toml) ... done 40 Using cached py-feat-0.3.6.tar.gz (6.0 MB) 41 Installing build dependencies ... done 42 Getting requirements to build wheel ... done 43 Preparing metadata (pyproject.toml) ... done 44INFO: pip is still looking at multiple versions of py-feat to determine which version is compatible with other requirements. This could take a while. 45 Using cached py-feat-0.3.5.tar.gz (6.0 MB) 46 Installing build dependencies ... done 47 Getting requirements to build wheel ... done 48 Preparing metadata (pyproject.toml) ... done 49 Using cached py-feat-0.3.4.tar.gz (6.6 MB) 50 Installing build dependencies ... done 51 Getting requirements to build wheel ... done 52 Preparing metadata (pyproject.toml) ... done 53Collecting scikit-learn<0.24.0,>=0.18.1 (from py-feat) 54 Using cached scikit-learn-0.23.2.tar.gz (7.2 MB) 55 Installing build dependencies ... error 56 error: subprocess-exited-with-error 57 58 × pip subprocess to install build dependencies did not run successfully. 59 │ exit code: 1 60 ╰─> [68 lines of output] 61 Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation == "CPython"' don't match your environment 62 Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation != "CPython"' don't match your environment 63 Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment 64 Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment 65 Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment 66 Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment 67 Collecting setuptools 68 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) 69 Collecting wheel 70 Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB) 71 Collecting Cython>=0.28.5 72 Using cached Cython-3.0.11-cp313-cp313-win_amd64.whl.metadata (3.2 kB) 73 Collecting numpy==1.17.3 74 Using cached numpy-1.17.3.zip (6.4 MB) 75 Installing build dependencies: started 76 Installing build dependencies: finished with status 'done' 77 Getting requirements to build wheel: started 78 Getting requirements to build wheel: finished with status 'done' 79 Preparing metadata (pyproject.toml): started 80 Preparing metadata (pyproject.toml): finished with status 'error' 81 error: subprocess-exited-with-error 82 83 Preparing metadata (pyproject.toml) did not run successfully. 84 exit code: 1 85 86 [31 lines of output] 87 Running from numpy source directory. 88 <string>:418: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates 89 Traceback (most recent call last): 90 File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> 91 main() 92 ~~~~^^ 93 File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main 94 json_out['return_val'] = hook(**hook_input['kwargs']) 95 ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 96 File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.496.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel 97 return hook(metadata_directory, config_settings) 98 File "C:\Users\2121093\AppData\Local\Temp\pip-build-env-8ocycdc1\overlay\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel 99 self.run_setup() 100 ~~~~~~~~~~~~~~^^ 101 File "C:\Users\2121093\AppData\Local\Temp\pip-build-env-8ocycdc1\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup 102 super().run_setup(setup_script=setup_script) 103 ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 104 File "C:\Users\2121093\AppData\Local\Temp\pip-build-env-8ocycdc1\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup 105 exec(code, locals()) 106 ~~~~^^^^^^^^^^^^^^^^ 107 File "<string>", line 443, in <module> 108 File "<string>", line 422, in setup_package 109 File "C:\Users\2121093\AppData\Local\Temp\pip-install-s_bl334o\numpy_2cb1bbc8aadd45fbb0290e54afa9f9a4\numpy\distutils\core.py", line 26, in <module> 110 from numpy.distutils.command import config, config_compiler, \ 111 ...<2 lines>... 112 install_clib 113 File "C:\Users\2121093\AppData\Local\Temp\pip-install-s_bl334o\numpy_2cb1bbc8aadd45fbb0290e54afa9f9a4\numpy\distutils\command\config.py", line 20, in <module> 114 from numpy.distutils.mingw32ccompiler import generate_manifest 115 File "C:\Users\2121093\AppData\Local\Temp\pip-install-s_bl334o\numpy_2cb1bbc8aadd45fbb0290e54afa9f9a4\numpy\distutils\mingw32ccompiler.py", line 34, in <module> 116 from distutils.msvccompiler import get_build_version as get_build_msvc_version 117 ModuleNotFoundError: No module named 'distutils.msvccompiler' 118 [end of output] 119 120 note: This error originates from a subprocess, and is likely not a problem with pip. 121 error: metadata-generation-failed 122 123 Encountered error while generating package metadata. 124 125 See above for output. 126 127 note: This is an issue with the package mentioned above, not pip. 128 hint: See above for details. 129 [end of output] 130 131 note: This error originates from a subprocess, and is likely not a problem with pip. 132error: subprocess-exited-with-error 133 134× pip subprocess to install build dependencies did not run successfully. 135│ exit code: 1 136╰─> See above for output. 137 138note: This error originates from a subprocess, and is likely not a problem with pip.
該当のソースコード
特になし
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
別のパッケージのspeech_recognitionはダウンロードできたが
py-featはダウンロードできなかった。
補足
バージョンの表示が違うがパスの都合で問題ないらしい
前2回の質問を踏まえると、そこで叩くpipは3.13のほうが動いています。
以下の2点をお勧めします。
- 複数のPythonがインストールされているので、動かしたい1個を残して、他はアンインストールする
- 「C:\Users\中略\Python312」とは別の場所に作業用のフォルダーを作成して、そこでコマンドを叩く