【Python】オーディオライブラリ「PySoundFile」のインストールについて解説しています。
「PySoundFile(https://github.com/bastibe/PySoundFile)」は、libsndfile、CFFI、および NumPyに基づくオーディオ ライブラリです。
■Python
今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)
■PySoundFileをインストールする
PySoundFileをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。
pip install PySoundFile
起動後、上記のコマンドを入力し、Enterキーを押します。
なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。
py -3.8 -m pip install PySoundFile
切り替えるために、上記のコマンドを入力し、Enterキーを押します。
Defaulting to user installation because normal site-packages is not writeable Collecting PySoundFile Downloading PySoundFile-0.9.0.post1-py2.py3.cp26.cp27.cp32.cp33.cp34.cp35.cp36.pp27.pp32.pp33-none-win_amd64.whl (671 kB) ---------------------------------------- 671.8/671.8 kB 2.0 MB/s eta 0:00:00 Collecting cffi>=0.6 Using cached cffi-1.15.1-cp38-cp38-win_amd64.whl (178 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Installing collected packages: pycparser, cffi, PySoundFile Successfully installed PySoundFile-0.9.0.post1 cffi-1.15.1 pycparser-2.21
Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、PySoundFileが正常にインストールされたことになります。
なお、今回はPySoundFileのバージョン0.9.0.post1をインストールしました。
コメント