jupyterlab desktopでのライブラリの追加インストール

実現したいこと

%pip install playsoundを用いて、playsoundライブラリをインストールしたい。

発生している問題・分からないこと

実行したところ、自分ではよくわからないエラーが出てきました。

エラーメッセージ

error

1Collecting playsound 2 Downloading playsound-1.3.0.tar.gz (7.7 kB) 3 Installing build dependencies: started 4 Installing build dependencies: finished with status 'done' 5 Getting requirements to build wheel: started 6 Getting requirements to build wheel: finished with status 'error' 7Note: you may need to restart the kernel to use updated packages. 8 error: subprocess-exited-with-error 9 10 Getting requirements to build wheel did not run successfully. 11 exit code: 1 12 13 [28 lines of output] 14 Traceback (most recent call last): 15 File "C:\Users\inoue\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> 16 main() 17 File "C:\Users\inoue\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main 18 json_out['return_val'] = hook(**hook_input['kwargs']) 19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20 File "C:\Users\inoue\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel 21 return hook(config_settings) 22 ^^^^^^^^^^^^^^^^^^^^^ 23 File "C:\Users\inoue\AppData\Local\Temp\pip-build-env-3e1t70jq\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel 24 return self._get_build_requires(config_settings, requirements=['wheel']) 25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 26 File "C:\Users\inoue\AppData\Local\Temp\pip-build-env-3e1t70jq\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires 27 self.run_setup() 28 File "C:\Users\inoue\AppData\Local\Temp\pip-build-env-3e1t70jq\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup 29 super().run_setup(setup_script=setup_script) 30 File "C:\Users\inoue\AppData\Local\Temp\pip-build-env-3e1t70jq\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup 31 exec(code, locals()) 32 File "<string>", line 6, in <module> 33 File "C:\Users\inoue\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1282, in getsource 34 lines, lnum = getsourcelines(object) 35 ^^^^^^^^^^^^^^^^^^^^^^ 36 File "C:\Users\inoue\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1264, in getsourcelines 37 lines, lnum = findsource(object) 38 ^^^^^^^^^^^^^^^^^^ 39 File "C:\Users\inoue\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 1093, in findsource 40 raise OSError('could not get source code') 41 OSError: could not get source code 42 [end of output] 43 44 note: This error originates from a subprocess, and is likely not a problem with pip. 45error: subprocess-exited-with-error 46 47Getting requirements to build wheel did not run successfully. 48exit code: 1 49 50See above for output. 51 52note: This error originates from a subprocess, and is likely not a problem with pip.

該当のソースコード

Python

1%pip install playsound 2#ライブラリを追加インストールする

試したこと・調べたこと

上記の詳細・結果

説明を読んでもよくわかりません。

補足

エラーの原因やうまくいく方法を教えていただけるとありがたいです。
お願いします。

コメントを投稿

0 コメント