> conda/pip install openssl
でOpenSSL モジュールをインストールしてください。
参考: 【Anaconda】ライブラリのインストール時にOpenSSLに関するエラーが発生してしまう場合の対処法について
- 天下一反省会!
tclライブラリィが見つからないというエラーが出た場合、環境変数に
TCL_LIBRARY=C:\Pythonインストール先\tcl\tcl8.6
を設定してください
Linuxでtkinterをインストール
最初のtry:
% pip install tkinter
tkinterが見つからない場合:
Linuxのパッケージ管理ツール (yum, dnf, apt-get)
でインストールします。
# dnf install python-tkinter
(Linux versionによってはpython3.11-tkinter, python3-tkinter
(AlmaLinux8), python3-tkなど)
Build
Toolsをダウンロード
Windowsのpython 3.9+でPHYSBOをインストール/実行する際、エラーが出ることがあります。
その場合は、python
3.6の仮想環境を作ってインストール/実行してください。
しかしながら、実行環境が複雑になるので、CPythonをインストールすることをお勧めします。
以下のエラーが出たら、Microsoft C++
Build Toolsをインストールする必要があります。
..(cut)... physbo\misc\_src\logsumexp.pyx tree = Parsing.p_module(s,
pxd, full_module_name) error: Microsoft Visual C++
14.0 or greater is required. Get it with "Microsoft C++ Build
Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for physbo
Failed to build physbo
ERROR: Could not build wheels for physbo which use PEP 517 and cannot be
installed directly
以下の参考: Microsoft Visual C++ 14.0 or greater is required.」が出た場合の対処方法 | ジコログ
i ) ここ
から vs_buildtools....exe
をダウンロードし、インストール。この際、「C++によるデスクトップ開発」をチェックして、インストールしてください
ii)
インストールが終わったら、Windowsのスタートメニューから
"Visual Studio XXXX" の "Developer Command Prompt for VS XXX"
を起動し、
> pip install physbo
でインストールしてください (上記コマンドプロンプト以外でも、Build
toolsへのPATHが通っている環境ならOK)。
pyOpenGL
Linuxの場合:
freeglutをインストール
Windowsの場合: freeglutのダイナミックリンクライブラリをインストール
a) URL: https://www.transmissionzero.co.uk/software/freeglut-devel/
からDL、展開
b) x64/freeglut.dllをC:\Windows\System32にコピー
c) pyOpenGLでfreeglut.dllを読み込むように設定
URL: https://hawk-tech-blog.com/python-opengl-install-pyopengl/
[python]/Lib\site-packages\OpenGL\platform\win32.py を編集
@baseplatform.lazy_property
def GLUT( self ):
for possible in
('freeglut%s.%s'%(size,vc,), 'freeglut',
'glut%s.%s'%(size,vc,)):
whisper
localで音声ファイルの文字起こしを行う場合に使う。python
3.10以前が必要かも。
仮想環境作成
> python3.10 -m venv whisper-env
> whisper-env\Scripts\activate
Linuex: % source ./whisper-env/bin/activate
インストール
> pip install --upgrade pip
> pip install git+https://github.com/openai/whisper.git
インストール
( CUDA対応GPUがある場合)
(i) CUDAのバージョンを確認
> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Wed_Apr__9_19:24:57_PDT_2025
Cuda compilation tools, release 12.9, V12.9.41
Build cuda_12.9.r12.9/compiler.35813241_0
(ii) インストール
> pip install torch torchvision torchaudio --index-url
https://download.pytorch.org/whl/cu129
> pip install git+https://github.com/openai/whisper.git
動作確認
> whisper --help
ffmpegのインストール
repositoryが見つからない場合:
% sudo sudo dnf install epel-release
% sudo dnf install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
% sudo dnf install https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-9.noarch.rpm
% sudo dnf install ffmpeg
C:\msys64\mingw64\bin を PATHについかCXX=g++
を追加pytensorrcに追加# python -m pip install --upgrade pip setuptools